Sample GRAPHQL File Download
- sample1.graphql276 bytesDownload sample graphql file
- sample2.graphql1.1 KBDownload sample graphql file
- sample3.graphql1.9 KBDownload sample graphql file
Sample graphql file
A .graphql file (also seen as .gql) holds a GraphQL schema written in Schema Definition Language — type, input, enum, interface, and union declarations, plus the root Query, Mutation, and Subscription types that define the API surface.
The schema is the single source of truth for a GraphQL API: clients introspect it, tools generate types from it, and servers validate every request against it.
Use the samples below to test a schema parser, check codegen output, or confirm tooling handles directives, interfaces, unions, and subscriptions.