Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 882 Bytes

quick-hotels-beam.md

File metadata and controls

16 lines (11 loc) · 882 Bytes
@graphql-tools/stitch @graphql-tools/stitching-directives @graphql-tools/utils @graphql-tools/wrap
major
major
major
major

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.