apollo-federation
Audited by Runlayer on Feb 22, 2026
Malicious tool definition detected
Tool: SKILL.md Description: --- name: apollo-federation description: > Guide for authoring Apollo Federation subgraph schemas.
Malicious tool definition detected
Tool: references/composition.md Description: # Composition Rules and Errors Rules for composing subgraph schemas into a supergraph, with error codes and fixes. ## Entity Validation Entities must have valid `@key` definitions that can be resolved across subgraphs. ### KEY_FIELDS_SELECT_INVALID_TYPE `@key` includes a field returning list, interface, or union. ```graphql # INVALID type Product @key(fields: "tags") { tags: [String!]!
Malicious tool definition detected
Tool: references/directives.md [1/3] Description: # Federation Directives Complete reference for all Apollo Federation 2.x directives. # Managing Types ## @key ```graphql directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE ``` Designates an object type as an entity with a unique key for cross-subgraph resolution. ### Arguments | Option | Type | Default | Description | | ------------ | ------- | ------- | -------------------------------------------- | |
Tool: references/directives.md [2/3] Description: conditions that need to be true - Outer array of scopes argument represents a disjunction (OR) of conditions that needs to be true ### Examples #### Basic Usage User query requires `read:user` JWT scope ```graphql type Query { user(id: ID!): User @requiresScopes(scopes: [["read:user"]]) } ``` #### Conjunction of Multiple Scopes User query requires `read:user` AND `read:pii` JWT scope. ```graphql type Query { user(id: ID!): User @requiresScopes(sc
Tool: references/directives.md [3/3] Description: ```graphql directive @fromContext(field: ContextFieldValue) on ARGUMENT_DEFINITION; ``` Sets the context from which to receive the value of the annotated field. The context must have been defined with the `@context` directive.
Malicious tool definition detected
Tool: references/schema-patterns.md [1/2] Description: # Schema Patterns Real-world multi-subgraph patterns and recipes for Apollo Federation. ## Entity Definition and Cross-Subgraph Contributions Multiple subgraphs contribute different fields to the same entity: ```graphql # Products subgraph type Product @key(fields: "id") { id: ID! name: String! price: Int } # Reviews subgraph type Product @key(fields: "id") { id: ID!
Tool: references/schema-patterns.md [2/2] Description: only mutual fields are preserved: ```graphql # Subgraph A input UserInput { name: String!