github ardatan/graphql-tools @graphql-tools/stitching-directives@2.0.0

latest releases: release-1731509960802, graphql-tools@9.0.3, @graphql-tools/wrap@10.0.16...
3 years ago

Major Changes

  • 74581cf: fix(getDirectives): preserve order around repeatable directives

    BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of name and args properties.

    New useful function getDirective returns an array of objects representing any args for each use of a single directive (returning the empty object {} when a directive is used without arguments).

    Note: The getDirective function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive!

    When specifying directives in extensions, one can use either the old or new format.

Minor Changes

  • 70cd65e: feat(stitching-directives): move federation-to-stitching-sdl

Patch Changes

Don't miss a new graphql-tools release

NewReleases is sending notifications on new releases.