@onedaycat/gqlimport
v1.0.0
Published
import multiple graphql schema
Downloads
2
Readme
gqlscalars
Use gqlgen
Installation
go get -u github.com/onedaycat/gqlscalars/...
Custom Scalars
In .gqlgen.yml
point to the name without the Marshal|Unmarshal in front:
models:
AWSJSON:
model: github.com/onedaycat/gqlscalars.AWSJSON
Add type in gqaphql schema
scalar AWSJSON
Query {
...
}
Mutation {
...
}
Run cmd on directory which graphql schema
gqlscalars
Schema Directives
If you get missing ditrective error, add directive in graphql schema
directive @aws_subscribe(mutations: [String]!) on FIELD_DEFINITION
Graphql Import
Installation
npm install -g @onedaycat/gqlimport
Usage
gqlimport <root_schema> <to_schema>
Example: gqlimport ./main.graphql ./schema.graphql