.graphql File — GraphQL Schema/Query
application/graphql
Drop any file to identify its extension and type — runs entirely in your browser
Drop a .graphql file here or click to choose
Or drop any file to identify its extension
application/graphqlQuick Facts
| Extension | .graphql |
| Full Name | GraphQL Schema/Query |
| MIME Type | application/graphql |
| Category | Code |
| Type | Text-based (human-readable) |
| Typical Size | 1 KB – 100 KB |
| First Appeared | 2015 |
What Is a .graphql File?
GraphQL files contain schema definitions, queries, mutations, and subscriptions for the GraphQL query language and runtime, developed by Facebook in 2012 and open-sourced in 2015. GraphQL provides a type system for defining API data structures and a query language that allows clients to request exactly the data they need, solving the over-fetching and under-fetching problems common with REST APIs. GRAPHQL files can contain schema definitions (types, interfaces, unions, enums, input types), query operations for reading data, mutation operations for modifying data, subscription operations for real-time updates, and fragments for reusable query components. The GraphQL type system enables powerful developer tooling including autocompletion, validation, and code generation. GraphQL has been adopted by major companies including GitHub (their primary API), Shopify, Twitter, and Airbnb. The ecosystem includes Apollo, Relay, and urql as client libraries, and Apollo Server, GraphQL Yoga, and Hasura as server implementations. GraphQL files are used in schema-first development, persisted queries, and code generation workflows that create typed client libraries from schema definitions.
How to Open .graphql Files
Related File Extensions
More Code File Extensions
Other code formats you might encounter
Browse File Extensions by Category
Explore our reference of 259 file extensions with details, programs, and related formats.