Skip to content

prisma-archive/graphcool-json-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphcool-json-schema

JSON schema of graphcool.yml files

CircleCI npm version

Usage

JSON Schema

As hosted URL

You can use the following URL for the current JSON schema file:

https://raw.githubusercontent.com/graphcool/graphcool-json-schema/master/src/schema.json

Import as file in Node

const schema = require('graphcool-json-schema/dist/schema.json')

Usage with VSCode

Add the following to your settings:

{
  "yaml.schemas": {
    "https://raw.githubusercontent.com/graphcool/graphcool-json-schema/master/src/schema.json": "graphcool.yml"
  }
}

Typescript Definitions

yarn add graphcool-json-schema
import { GraphcoolDefinition } from 'graphcool-json-schema'