.graphql
💻 CodeText-based

.graphql File — GraphQL Schema/Query

application/graphql

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

GRAPHQL

Drop a .graphql file here or click to choose

Or drop any file to identify its extension

Expected MIME type:application/graphql

Quick Facts

Extension.graphql
Full NameGraphQL Schema/Query
MIME Typeapplication/graphql
CategoryCode
TypeText-based (human-readable)
Typical Size1 KB – 100 KB
First Appeared2015

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

VS Code (with GraphQL extension)
Apollo Studio
GraphQL Playground
Insomnia
any text editor

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.