Skip to content

Commit 990bb30

Browse files
authored
docs(readme): added graphql-config information
1 parent 2699473 commit 990bb30

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ const server = new GraphQLServer({
4242
server.start(() => console.log('Server running on http://localhost:4000'))
4343
```
4444

45+
## graphql-config support
46+
47+
OpenAPI bindings are supported in `graphql-config` using its extensions model. OpenAPI bindings can be added to the configuration like this:
48+
```yaml
49+
projects:
50+
petstore:
51+
schemaPath: src/generated/petstore.graphql
52+
extensions:
53+
openapi:
54+
definition: petstore.json
55+
```
56+
This will enable running `graphql get-schema` to output the generated schema from the definition to the defined schemaPath.
57+
4558
## Static bindings
4659
Static binding support coming soon.
4760

0 commit comments

Comments
 (0)