Repository navigation
Patch Changes
-
#344
a77815fThanks @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, sodirective @TaskStatusnext toenum TaskStatusthrewExpected TaskStatus to be an enum typeinstead of composing. -
#345
8bd2873Thanks @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
@inaccessibleunless they were tagged themselves. Optional arguments silently disappeared from the contract schema, and required arguments failed composition withREQUIRED_INACCESSIBLE.An argument without its own
@tagnow inherits the tags of its field, matching the behavior of Apollo contracts. Arguments with their own@tagare 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] }