Skip to content

Enhancement: request required selection sets only for subschemas within a given operation #1874

Answered by yaacovCR
gmac asked this question in General
Discussion options

You must be logged in to vote

Why is the function necessary? We already have:

{
schema: inventorySchema,
merge: {
Product: {
selectionSet: '{ upc }',
fields: {
shippingEstimate: {
selectionSet: '{ price weight }',
},
},
fieldName: '_productByRepresentation',
args: ({ upc, weight, price }) => ({ product: { upc, weight, price } }),
}
}
},

More verbose, but preserves extensibility, maybe.

Functions might be nice down the road, but I want to see a use case first.

Replies: 22 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@yaacovCR
Comment options

@gmac
Comment options

@yaacovCR
Comment options

@yaacovCR
Comment options

@yaacovCR
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@yaacovCR
Comment options

@yaacovCR
Comment options

@yaacovCR
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gmac
Comment options

@gmac
Comment options

Comment options

You must be logged in to vote
3 replies
@gmac
Comment options

@yaacovCR
Comment options

@gmac
Comment options

Answer selected by yaacovCR
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gmac
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1874 on August 04, 2020 14:39.