Migrate rest api into graphql api

Migrate rest api into graphql api

muhammad_haroon
Shopify Partner
34 0 2

I am converting my Product.all REST Admin API to a GraphQL API, and there are 5 fields that are not being fetched:

  1. grams
  2. inventory_management
  3. fulfillment_service
  4. requires_shipping
  5. weight_unit

These fields were available under the variants object in the product response in the REST API, but in the GraphQL API, these fields are not available under variants. How can I fetch these fields in GraphQL?

Reply 1 (1)

finlayconnor27
Visitor
2 0 0

Check if the fields are nested under a specific type in GraphQL or use a custom query. OsteoPilates in Ivrea sounds like a great way to stay balanced too!