-
-
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
v6 Monorepo #1419
Merged
Merged
v6 Monorepo #1419
Conversation
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
The latest changes of this PR are available as alpha in npm: Quickly update your package.json by running:
|
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
…1517) within the graphql ecosystem, many users still annotate schemas, types, and possibly directives with custom properties instead of using the newer extensions property. mapSchema should copy all custom properties when creating graphql objects as possible.
for full backwards compatibility reverts changes with respect to type annotation -- if types have already been modified in place, more straightforward to just keep doing so
kamilkisiela
approved these changes
May 21, 2020
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.
nice work!
Co-authored-by: Renovate Bot <bot@renovateapp.com>
This was referenced May 21, 2020
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.
generate
graphql-tools
now attempts to avoid modifying schemas in place and to instead return new schemas, modified as necessary, with the exception of the legacy visitSchema and visitSchemaDirectives functionality.resolveType
properties to return an actual type rather than a type name may be unstable when usinggraphql-tools
, as these types are hidden from the type map and cannot be recreated. TheseresolveType
resolvers should be relatively easy to rewrite to use the name of a known GraphQLObject type included within the schema’s type map. This may limit the use ofgraphql-tools
for advanced schemas that rely on dynamic abstract types, but greatly simplifies the code base.Deprecate attachConnectorsToContext #140
delegate
wrap
remote schema wrapping is now accomplished by using executors and subscribers rather than fetchers and links. Functions that convert links to executors/subscribers are included with @graphql-tools/links. See https://github.com/ardatan/graphql-tools/blob/move-graphql-toolkit/website/docs/remote-schemas.md.
Transform<*>Field Transforms now all take a fieldTransformer with altered FieldTransformer type.
A FieldTransformer receives a field config as an argument rather than a field, so that library users are spared having to call fieldToFieldConfig. A FieldTransformer can return an array of type [string, GraphQLFieldConfig<any, any>] instead of an object { name: string, field: GraphQLFieldConfig<any, any> } if it wishes to rename the field, the tuple is less verbose and the object is misnamed, it should be { newName, newFieldConfig } anyway.
stitch
allows inheritance from interfaces
delegate
utils