https://github.com/nicolaslopezj/graphql-compiler
Compile .graphql files in Meteor
https://github.com/nicolaslopezj/graphql-compiler
graphql meteor
Last synced: 15 days ago
JSON representation
Compile .graphql files in Meteor
- Host: GitHub
- URL: https://github.com/nicolaslopezj/graphql-compiler
- Owner: nicolaslopezj
- License: mit
- Created: 2016-10-11T14:49:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T15:35:57.000Z (over 7 years ago)
- Last Synced: 2025-03-29T19:41:58.495Z (about 1 month ago)
- Topics: graphql, meteor
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GraphQL Compiler
Compiles ```.graphql``` files in Meteor.
```sh
meteor add orionsoft:graphql-compiler
```In ```Query.graphql```:
```graphql
type Query {
items: [Item]
}
```In ```index.js```:
```js
import Query from './Query.graphql'console.log(Query)
```Log ```index.js```:
```
type Query {
items: [Item]
}
```So now you can write your graphql schema in ```.graphql``` files and them import them as Strings.