FileSamplesHub

Sample GRAPHQL File Download

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.

Related file formats