The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Envelop Logo

Envelop

Get Started

Plugin Hub > useSchema

yarn add @envelop/core

useSchema#

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