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: 3 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 (over 4 years ago)
- Last Synced: 2025-01-31T00:34:30.757Z (3 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[](https://circleci.com/gh/graphcool/graphcool-json-schema) [](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'
```