Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/prisma-archive/graphcool-json-schema
- Owner: prisma-archive
- License: apache-2.0
- Created: 2017-09-06T12:37:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T03:31:33.000Z (about 4 years ago)
- Last Synced: 2024-09-27T08:58:48.218Z (4 months ago)
- Topics: graphcool, json-schema, typescript
- Language: TypeScript
- Size: 43 KB
- Stars: 12
- Watchers: 5
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```