The Guild LogoThe Guild Monogram
Envelop Logo


Get Started

Plugin Hub > useSchema

yarn add @envelop/core


This plugin is the simplest plugin for specifying your GraphQL schema. You can specify a schema created from any tool that emits GraphQLSchema object.

import { envelop, useSchema } from '@envelop/core' import { buildSchema } from 'graphql' const mySchema = buildSchema(/* ... */) const getEnveloped = envelop({ plugins: [ useSchema(mySchema) // ... other plugins ... ] })

Plugin Details

Edit on GitHub