Selecting Fields
fields
query parameter that can be passed to the endpoint. You can use the fields
query parameter to specify which fields in the entity should be returned in the response.fields
query parameter, only the fields you pass in the value along with the id
of the entity will be returned in the response.fields
query parameter does not affect the expanded relations. You'll have to use the expand
parameter instead.Selecting One Field
title
as a value to the fields
query parameter:
variants
will still be returned as they're not affected by the fields
parameter.title
field is returned by passing an empty value to the expand
query parameter. For example:
Selecting Multiple Fields
fields
query parameter with a comma.title
and handle
of the products:
Retrieve Only the ID
fields
query parameter to return only the ID of an entity. For example:
expand
query parameter to ensure that the relations aren't retrieved as well. For example:
Modified at 2023-10-10 11:56:42