-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Update mergeSchemas and delegation API, plus Schema Transfroms #527
Merged
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
08e2058
Next api
freiksenet 6f3728e
mre from master
freiksenet 9b18a78
Merge remote-tracking branch 'origin/master' into next-api
freiksenet 0c1b48a
Make all tests pass
freiksenet 59d2779
Namespacing schema
freiksenet a0e8416
Backwards compatible implementation
freiksenet 4b108cb
Alpha 6
freiksenet a986cc9
More helpful warnings
freiksenet 4fcd04b
Drop old versions
freiksenet a21165d
Update dependencies
freiksenet 1c0f3f8
Lock apollo-link to lower version to avoid their bug
freiksenet 39f1d7a
Merge remote-tracking branch 'origin/master' into next-api
freiksenet f914bee
Richer onTypeConflict
freiksenet 65bd750
Alpha 7
freiksenet 033efb5
Filtering types
freiksenet 4a04136
Separate transforms
freiksenet 652d608
Better
freiksenet 0988b01
Fixed fragments
freiksenet d0f8d3d
Alpha 10
freiksenet 96b78bf
Merge remote-tracking branch 'origin/master' into next-api
freiksenet 08caa78
Starting doing the docs
freiksenet ec96674
Updated docs
freiksenet 59e0da5
More docs
freiksenet fd8b8f0
Merge branch 'master' into next-api
freiksenet 51d2ccf
Removed re-export
freiksenet e380441
Add failing spec for merging schemas w/ unions that implement an inte…
mzikherman 23edf1a
Merge remote-tracking branch 'mzikherman/unions_and_interfaces' into …
freiksenet 6b7a1ce
Expand new interfaces to their implementations
freiksenet 27bd1d8
Alpha 11
freiksenet ed681c9
Older graphql support
freiksenet 07d2f72
Fix older graphql v2
freiksenet a0780f5
Merge branch 'master' into next-api
freiksenet a0e5e2c
Add __typename at expansion
freiksenet 388973a
Alpha 12
freiksenet 04b659e
Fix more issues with abstract types
freiksenet 4bffa18
Alpha 13
freiksenet a19d94a
Rollback to old API
freiksenet 0db0123
Alpha 14
freiksenet 54d140a
Merge branch 'master' into next-api
freiksenet 3b71ebc
graphql -> execute (#710)
c3aaf92
Rename makeTransformSchema to transformSchema.
benjamn cf2c921
Add back Travis CI testing in Node 4.
benjamn b740ede
Limit transforms/index.ts re-exports as much as possible.
benjamn 55eb147
First pass at editing schema-delegation.md.
benjamn 8fb3b45
Make delegateToSchema take named rather than positional parameters.
benjamn dbee260
Make additional args optional when calling delegateToSchema.
benjamn 8970eaa
Merge remote-tracking branch 'origin/master' into next-api
freiksenet cabbd94
Remove transform warnings
freiksenet 2e14209
Alpha 15
freiksenet 663c9af
Don't overuse fragments that won't be valid
freiksenet fa1228c
Alpha 16
freiksenet 101fd40
Fix examples of delegateToSchema (#742)
kuzmiigo 370e701
Added Changelog
freiksenet 62972c3
Update schema-transforms.md
freiksenet 341a4ba
Move everything to be a class
freiksenet f0219e0
Make delegate to schema backwards compatible
freiksenet 0e92f24
Merge branch 'master' into next-api
freiksenet 1116562
Minor tweaks to schema-delegation.md.
benjamn e3634d6
Editing pass over schema-stitching.md.
benjamn 193aaa6
Define reusable IResolversParameterType.
benjamn dc5187f
Reimplement RenameTypes#transformResult without using visitObject.
benjamn 452586a
Rearrange and simplify v3.0.0 CHANGELOG.md section.
benjamn e5eb694
Editing pass over schema-transforms.md.
benjamn 169e698
Rename Boolean (object) type annotations to boolean (primitive).
benjamn 9b834b4
Remove qualified export, add wrapquery and extractfield
freiksenet fa9af99
Merge branch 'master' into next-api
freiksenet adb1a7f
Code coverage fixes.
benjamn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I changed this code so that it now handles arrays as well as any other kind of object, preserving the original prototype. I think it's important to transform arrays as well as objects here, since you could have objects nested inside array results that need their
__typename
s to be updated.