query queryA($status: String @skip(if: true)) @skip(if: false) { field response(status: $status) @deprecated human { pets { ...pet @directiveB } } } fragment pet on Cat @directiveB { meowVolume ... on Pet @directiveA { name } } subscription subscriptionA @directiveA { newMessage { body sender } } mutation myMutation @skip(if: true) { setMessage(message: "Hello, World! Yours, GraphQL.") } interface Pet @skip(if: true) { name: String } type Dog implements Pet { name: String @directiveB nickname: String barkVolume: Int } type Cat implements Pet { name: String nickname: String meowVolume: Int } input Example @include(if: true) { self: Example @include(if: true) value: String } union CatOrDog @directiveB = Cat | Dog type Human { name: String pets: [Pet] } enum Status @directiveA { GREEN @directiveA RED YELLOW } type Query @deprecated { human: Human field: String response( status: String @specifiedBy(url: "https://tools.ietf.org/html/rfc4122"), ): Status } type Subscription { newMessage: Result } type Mutation { setMessage(message: String): String } schema @include(if: true) { query: Query subscription: Subscription mutation: Mutation } type Result { body: String sender: String } scalar spec @directiveB @specifiedBy(url: "https://spec.graphql.org/") directive @directiveA on UNION directive @directiveB on ENUM