OptionalerrorsArray of GraphQL errors (e.g. permission denied for specific fields)
Human-readable error message
Optionallocations?: { line: number; column: number }[]Source locations in the query where the error occurred
Optionalpath?: (string | number)[]Path to the field that caused the error
Optionalextensions?: { code: string; documentation: string; requiredAccess: string }Additional error metadata
Error code (e.g. "ACCESS_DENIED")
Link to relevant documentation
Description of required access scope
The query result data
Product search results in relay-style edges/node format
Array of product edge objects
OptionalextensionsQuery cost and performance metadata
Optionalcost?: { requestedQueryCost: number }API cost information
The computed cost of the query
Represents the full response from a Shopify GraphQL product search query. May contain partial errors (e.g. permission-denied fields) alongside valid data.
Example