Skip to main content

GraphQL schemas keep their directives when imported as a project

Importing a GraphQL schema as a project now keeps every directive the schema applies. See how GraphQL schemas import.

  • Types, fields and enum values. @deprecated, @key(fields: "id") and your own directives are kept with their arguments — on the class and on each property as x-graphql-directive, and per enum value under x-graphql-enum-value-directives.
  • Unions with a directive. A union such as union Result @key(fields: "id") = A | B now keeps its member types too.