Socket
Book a DemoInstallSign in
Socket

@graphql-schema/validate-schema

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-schema/validate-schema

Parse & validate a GraphQL Schema and throw clear errors if anything is wrong.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@graphql-schema/validate-schema

Parse & validate a GraphQL Schema and throw clear errors if anything is wrong.

Installation

yarn add @graphql-schema/validate-schema

Usage

import validateSchema, {
  validateSchemaFile,
} from '@graphql-schema/validate-schema';

validateSchemaFile('./my-schema.graphql');
validateSchema('query { login: String! }');

Federated Schemas

import validateSchema, {
  validateSchemaFile,
} from '@graphql-schema/validate-schema';

validateSchemaFile('./my-schema.graphql', {isFederated: true});
validateSchema('query { login: String! }', {isFederated: true});

FAQs

Package last updated on 24 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts