GraphQL: Add relatedToProducts/relatedToVariants RelationArgumentHandler
#4202
-
|
Craft Commerce’s GraphQL API currently doesn’t provide For example, we can currently do: query GetRelatedProducts {
products(relatedToEntries: [{slug: "some-article", withStructure: true}]) {
title
}
}I’d like equivalent relation criteria for products and variants so it’s possible to query entries (or other elements) that are related to specific products or variants, and to express structure-aware relations (e.g. query GetArticle {
entries(relatedToProducts: [{slug: "some-product", withStructure: true}]) {
title
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Mar 11, 2026
Replies: 1 comment
-
|
Thanks for the suggestion! We just tagged Commerce 5.6.0 with both of those new GraphQL arguments. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the suggestion! We just tagged Commerce 5.6.0 with both of those new GraphQL arguments.