Skip to content

Commit

Permalink
Fix existing test which now has directives preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
tninesling committed Aug 23, 2024
1 parent 56fd74c commit bec6cc0
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
source: router-bridge/src/planner.rs
expression: schema
---
schema @link(url: "https://specs.apollo.dev/link/v1.0") @link(url: "https://specs.apollo.dev/federation/v2.9", import: ["@key", "@requires", "@provides", "@external", "@tag", "@extends", "@shareable", "@inaccessible", "@override", "@composeDirective", "@interfaceObject"]) {
query: Query
mutation: Mutation
}

directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA

directive @key(fields: federation__FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE
Expand Down Expand Up @@ -55,7 +60,6 @@ enum link__Purpose {
`SECURITY` features provide metadata necessary to securely resolve fields.
"""
SECURITY

"""
`EXECUTION` features provide metadata necessary for operation execution.
"""
Expand All @@ -74,10 +78,10 @@ scalar federation__ContextFieldValue

union AccountType = PasswordAccount | SMSAccount

type Library {
userAccount(id: ID! = 1): User
type Library @key(fields: "id") {
userAccount(id: ID! = 1): User @requires(fields: "name")
id: ID!
name: String
name: String @external
}

type Mutation {
Expand All @@ -89,7 +93,7 @@ type Name {
last: String
}

type PasswordAccount {
type PasswordAccount @key(fields: "email") {
email: String!
}

Expand All @@ -100,11 +104,11 @@ type Query {
_service: _Service!
}

type SMSAccount {
type SMSAccount @key(fields: "number") {
number: String
}

type User {
type User @key(fields: "id") @key(fields: "username name{first last}") {
id: ID!
name: Name
username: String
Expand All @@ -114,9 +118,9 @@ type User {
}

type UserMetadata {
name: String
address: String
description: String
name: String @shareable
address: String @shareable
description: String @shareable
}

scalar _Any
Expand Down

0 comments on commit bec6cc0

Please sign in to comment.