Migrate rest api into graphql api

Topic summary

A developer is migrating from Shopify’s REST Admin API to GraphQL and encountering missing fields in the product variants data.

Missing Fields:

  • grams
  • inventory_management
  • fulfillment_service
  • requires_shipping
  • weight_unit

These fields were previously available under the variants object in REST API responses but are not accessible in the same location within GraphQL.

Current Status:
One response suggests checking if the fields are nested under a different type in the GraphQL schema or creating a custom query, but no definitive solution has been provided yet. The issue remains unresolved with the developer seeking guidance on how to properly access these variant-level fields in GraphQL.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

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?

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!