Skip to content

Commit

Permalink
feat: initial suport for applied directives
Browse files Browse the repository at this point in the history
Update type definitions to expose `AppliedDirective`s. **This initial implementation only exposes applied directive as metadata and does not modify runtime wiring to process them**. Exposing directives is a pre-req to enable support for [Apollo Federation](https://www.apollographql.com/docs/federation/) (related: #492).

Following the pattern from [`graphql-java`](https://github.com/graphql-java/graphql-java) and [`HotChocolate`](https://github.com/ChilliCream/hotchocolate) where they make distinction between directive type definition (i.e. `directive @foo on FIELD_DEFINITION`, maps to existing `Directive struct` for backwards compatibility) and where directives are actually applied within the schema (i.e. `type Foo @bar { baz @Qux }`, maps to new `AppliedDirective` struct`).
  • Loading branch information
dariuszkuc committed Oct 17, 2022
1 parent 09272f3 commit 937b0ca
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 117 deletions.
Loading

0 comments on commit 937b0ca

Please # to comment.