-
-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance(stitching): increase key flexibility when type merging #1888
Merged
Commits on Aug 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8df12ca - Browse repository at this point
Copy the full SHA 8df12caView commit details -
enhance(stitching): only add necessary keys
also consolidates equivalent selections add memoization This could be optimized differently: if there was a mapping of fields within the gateway schema to the subschemas containing those fields, we could instead iterate through the document and collect the originating subschemas and then add the keys for each of those subschemas. This method seems possibly about as good.
Configuration menu - View commit details
-
Copy full SHA for b451ba8 - Browse repository at this point
Copy the full SHA b451ba8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b44039 - Browse repository at this point
Copy the full SHA 6b44039View commit details -
enhance(typeMerging): expand allowed keys
allow keys whose source data is spread across multiple schemas
Configuration menu - View commit details
-
Copy full SHA for 8a0321a - Browse repository at this point
Copy the full SHA 8a0321aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6e58bf - Browse repository at this point
Copy the full SHA c6e58bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 183d279 - Browse repository at this point
Copy the full SHA 183d279View commit details -
Configuration menu - View commit details
-
Copy full SHA for ded83e7 - Browse repository at this point
Copy the full SHA ded83e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 993ffb5 - Browse repository at this point
Copy the full SHA 993ffb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae3b7e - Browse repository at this point
Copy the full SHA 3ae3b7eView commit details -
enhance(typeMerging): prune fields that cause key fields to be added
key fields for a given subschema by definition must be resolved outside that subschema, and so for any given key field, there is no need to add the other key fields to the selectionSet or to consider the key field as proxiable via that subschema. The key field is the "key" to the remaining fields, but -- for the purposes of type merging -- will never be obtained from the given subschema. This becomes more complex with non-leaf key fields, and so this pruning is enabled only for leaf key fields.
Configuration menu - View commit details
-
Copy full SHA for bad1e54 - Browse repository at this point
Copy the full SHA bad1e54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0924da4 - Browse repository at this point
Copy the full SHA 0924da4View commit details -
to favor input object type over scalar see #1888 (review)
Configuration menu - View commit details
-
Copy full SHA for bb50f3e - Browse repository at this point
Copy the full SHA bb50f3eView commit details
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.