peerDependencies
range for graphql
to include graphql@15.x
.extensions
prior to passing them to buildASTSchema
, in an effort to provide minimum compatibilty for graphql@14
-compatible schemas with the upcoming graphql@15
release. This PR does not, however, bring support for newer graphql@15
features like interfaces implementing interfaces. #1284getIntrospectionQuery
instead of deprecated introspectionQuery
constant from graphql-js
@derek-miller in #1228mergeSchemas
as a string or GraphQLSchema
. mergeSchemas
optionally merge directive definitions. buildSchema
options. WrapQuery
work for non-root fields mergeSchemas
api reference. TArgs
generic wherever IFieldResolver
is used. repository
field. mergeSchemas
extractExtensionDefinitions
to support graphql-js
union and enum extensions. mockServer
(closes #951)visitSchema
. graphql
and @types/graphql
14.x. graphql
14 includes breaking changes. We're bumping the major version of graphql-tools
to accommodate those breaking changes. If you're planning on using graphql
14 with graphql-tools
4.0.0, please make sure you've reviewed the graphql
breaking changes list.
@hwillson in #953IFieldResolver
to allow typed input args. extractExtensionDefinitions
to properly support graphql-js
input extensions. extensions
property to make compatible with Apollo Server and it's built-in errors. casual
dependency for mocking, since it was causing issues for people using graphql-tools
in the browser.getDescription
from graphql-js
package PR #672IResolvers
to use source & context generics and to support all resolver use cases. #896WrapQuery
's wrapper
param can now return a SelectionSet. PR #902 Issue #901inheritResolversFromInterfaces
option to mergeSchemas
PR #812delegateToSchema
now behaves like info.mergeInfo.delegateToSchema
for fragment handling Issue #876 PR #885dist/generate
isn't excluded when published.FilterToSchema
#778Fixed an array cloning bug in the RenameTypes
transform
#756
Fixed a fragments bug in the ReplaceFieldWithFragment
transform
#763
Schema transforms and delegation
mergeSchemas
and delegateToSchema
delegateToSchema
is now a public API: DocsdelegateToSchema
now accepts an object of named parameters; positional arguments are deprecateddelegateToSchema
no longer accepts fragmentReplacements
; instead use transforms
info.mergeInfo.delegateToSchema
is now the preferred delegation API, rather than info.mergeInfo.delegate
Other changes
extend interface
definitions in merged schemas PR #703@deprecated
example in schema-directives.md
PR #706@date
directive PR #686defaultMergedResolver
for schema stitching PR #685requireResolversForResolveType
to resolver validation options PR #698inheritResolversFromInterfaces
option to makeExecutableSchema
and addResolveFunctionsToSchema
PR #720SchemaDirectiveVisitor
abstraction for implementing reusable schema @directive
s has landed. Read our blog post about this new functionality, and/or check out the documentation for even more examples. PR #640getErrorsFromParent
PR #667graphql@^0.13.0
PR #567Symbol
in incompatible envs Issue #535 PR #631error.path
could be undefined
for schema stitching PR #617makeExecutableSchema
and mergeSchema
now accept an array of IResolver
PR #612 PR #576 PR #577delegateToSchema.ts
to remove duplicate new variable definitions when delegating to schemas PR #607astNode
property for fields, not only types, when recreating schemas. PR #580delegateToSchema.js
to accept and move forward args with zero or false values PR #586number
type PR #568astNode
property in schema recreation PR #569makeRemoteExecutableSchema
PR #563apollo-link
a direct dependency PR #561graphql-js@0.12
docstring format PR #559Update to add support for graphql@0.12
, and drop versions before 0.11
from the peer dependencies list. The graphql
package has some breaking changes you might need to be aware of, but there aren't any breaking changes in graphql-tools
itself, or common usage patterns, so we are shipping this as a minor version. We're also running tests on this package with both graphql@0.11
and graphql@0.12
until we confirm most users have updated.
graphql
releases page to keep track of for breaking changes to the underlying package.schema
to makeRemoteExecutableSchema
PR #521resolverValidationOptions.allowResolversNotInSchema
to allow resolvers to be set even when they are not defined in the schemas PR #444isTypeOf
guards from merged schemas PR #484resolvers
parameter optional for mergeSchemas
Issue #461 PR #462apollo-link
was being used directlytypeFromAST
. This allows the
descriptions to be part of the schema when using helpers like mergeSchemas()
.@types/graphql
a dev dependency and make it's version as flexible as graphql
PR #421graphqlContext
field of link
context to avoid merging problemslodash
dependency PR #356addMockFunctionsToSchema
for 'schema' property in parameter object PR #321graphql-subscription
and use an interface for PubSub PR #295typed-graphql
to @types/graphql
. PR #249addSchemaLevelResolveFunction
resolves once per operation type and not once globally. #220graphql-subscriptions
. #2100.8.1
. (@oricordeau in #203)typed-graphql
to optionalDependencies
(@stubailo in #183)requireResolversForArgs = false
* requireResolversForNonScalar = false
Various Bugfixes (@DxCx in #129) - Istanbul coverage was not working well due to Istanbul bug #549 - Bluebird promise was not converted well on tests - "console.warn" got overwritten on tests
Changed GraphQL typings requirement from peer to standard (@DxCx in #129)
Change the missing resolve function validator to show a warning instead of an error (@nicolaslopezj in #134)
Add missing type annotations to avoid typescript compiler errors when 'noImplicitAny' is enabled (@almilo in #133)
Fix issue in addMockFunctionsToSchema when preserveResolvers is true and connector/logger is used. (@DxCx in #121)
Fix multiple issues in addMockFunctionsToSchema when preserveResolvers is true (support for Promises, and props defined using Object.defineProperty) (@sebastienbarre in #115)
Make allowUndefinedInResolve true by default (@jbaxleyiii in #117)
Add requireResolversForAllFields
resolver validation option (@nevir in #107)
extend
keyword to schemaGenerator (PR #90)Tracer
, addTracingToResolvers
and decorateWithTracer