# Three ways to represent your GraphQL schema

DevFeed: [Three ways to represent your GraphQL schema](<https://devfeed.tech/articles/three-ways-to-represent-your-graphql-schema-23546.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/three-ways-to-represent-your-graphql-schema>)

Author: Sashko Stubailo

Published: 2018-05-16T19:19:00Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Structured-data](<https://devfeed.tech/topics/structured-data.md>), [API](<https://devfeed.tech/topics/api.md>), [Tooling](<https://devfeed.tech/topics/tooling.md>), [Code](<https://devfeed.tech/topics/code.md>), [npm](<https://devfeed.tech/topics/npm.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [npm](<https://devfeed.tech/tags/npm.md>), [playground](<https://devfeed.tech/tags/playground.md>), [schema](<https://devfeed.tech/tags/schema.md>), [sdl](<https://devfeed.tech/tags/sdl.md>)

## AI overview

This tutorial explains three common ways to represent a GraphQL schema: GraphQL Schema Definition Language, the result of an introspection query, and the GraphQL.js GraphQLSchema object. It describes their uses and how to convert between them.

## Source excerpt

One of the best parts of GraphQL is that it provides a clean definition of the data available in your API through a schema. The schema describes the types and fields you can query, and also includes any relationships between those types. The schema is what enables GraphQL to have such a variety of useful developer tools including auto-completing query explorers like GraphiQL and GraphQL playground, editor and IDE integrations, query validation tools, code generation, automatic mocking and more.