Skip to content

[7.x] How do i get a variant's GID through graphQL? #211

@mathieuser

Description

@mathieuser

Hi,

Might be a stupid question, but i cannot find it anywhere.

If i do something like:

query Uitgaven { relatedUitgaven: shopifyProducts { ...on ShopifyProduct { shopifyId shopifyGid id variants { id } } } }

the variant id is a 2 digit number (78, 81, etc), not a GID, even though the graphql manual in graphiql says it should be the GID.

How do i retrieve this?

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions