Skip to content

v0.27.2

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 15:17
· 1 commit to main since this release
0e56fc5

Patch Changes

  • #344 a77815f Thanks @kamilkisiela! - Fix a crash when a directive shares its name with a type. Directives and types live in separate namespaces in GraphQL, but subgraph state kept both in a single map, so directive @TaskStatus next to enum TaskStatus threw Expected TaskStatus to be an enum type instead of composing.

  • #345 8bd2873 Thanks @n1ru4l! - Keep untagged arguments of included fields in schema contracts.

    Previously, when a contract used an include filter, arguments of an included field were marked @inaccessible unless they were tagged themselves. Optional arguments silently disappeared from the contract schema, and required arguments failed composition with REQUIRED_INACCESSIBLE.

    An argument without its own @tag now inherits the tags of its field, matching the behavior of Apollo contracts. Arguments with their own @tag are still filtered by their own tags.

    type Query {
      user(id: ID!): User @tag(name: "public")
      users(first: Int): [User] @tag(name: "public")
    }

    With include: ["public"], the contract schema now composes and contains:

    type Query {
      user(id: ID!): User
      users(first: Int): [User]
    }