Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prisma-archive/graphcool-json-schema

JSON schema of graphcool.yml files
https://github.com/prisma-archive/graphcool-json-schema

graphcool json-schema typescript

Last synced: 4 months ago
JSON representation

JSON schema of graphcool.yml files

Awesome Lists containing this project

README

        

# graphcool-json-schema
JSON schema of graphcool.yml files

[![CircleCI](https://circleci.com/gh/graphcool/graphcool-json-schema.svg?style=shield)](https://circleci.com/gh/graphcool/graphcool-json-schema) [![npm version](https://badge.fury.io/js/graphcool-json-schema.svg)](https://badge.fury.io/js/graphcool-json-schema)

## 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

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

#### Usage with VSCode

Add the following to your settings:

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

### Typescript Definitions

```sh
yarn add graphcool-json-schema
```

```ts
import { GraphcoolDefinition } from 'graphcool-json-schema'
```