Can GraphQL edges and nodes be "turned off"?

pjakobsen
Tourist
4 0 0

Hi, is is possible to make a GraphQL request to the Admin API, and request that edges and node elements are not included in the response?

0 Likes
_JB
Shopify Staff
Shopify Staff
822 97 178

Hey @pjakobsen,

I'm not aware of a way to filter the edges and nodes fields from the response. If you're looking to make the response easier to read, you can try renaming a field in the response with the syntax newName:field where field is the original field name.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes