Add products field to the root query#23
Merged
AlessioRocco merged 6 commits intomasterfrom Oct 18, 2019
Merged
Conversation
7a30aa6 to
04aa9cb
Compare
1f6af4e to
c553c68
Compare
c553c68 to
8ee2921
Compare
8ee2921 to
3c2f1c8
Compare
It adds a basic Product Type that is used in the products field in the query root. The products field uses the Spree::Queries::ProductsQuery object to retrieve the products.
3c2f1c8 to
13c5cd4
Compare
It adds the variants connection field to the Product Type and uses the Spree::Queries::Product::VariantsQuery query object with batch loader to retrieve the product variants.
0b97549 to
a9888d8
Compare
It adds the master variant field to the Product Type and uses the Spree::Queries::Product::MasterVariantQuery query object with batch loader to retrieve the product master variant.
f34e67c to
cfefe43
Compare
graphql-ruby removes the Type suffix if we don't specify it with graphql_name. Also change the description.
It adds the option types connection field to the Product Type and uses the Spree::Queries::Product::OptionTypesQuery query object with batch loader to retrieve the product option types.
Using command "bundle exec rake schema:idl"
cfefe43 to
e52fecf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
productsfield to the root query, the Product Type has the basic fields,variantsandoption_typesconnections, and themaster variant.