Skip to content

Commit bede9f8

Browse files
authored
Documenting new command in the Laravel package (#595)
I added a new command in the Laravel package to export the schema. This can be useful in other tools (like graphql-codegen). This PR adds the documentation. The orginal PR is here: thecodingmachine/graphqlite-laravel#44
1 parent de089ba commit bede9f8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

website/docs/laravel-package-advanced.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,16 @@ class User extends Model
328328
```
329329

330330
</div>
331+
332+
## Export the schema from the CLI
333+
334+
The extension comes with a special command: `graphqlite:export-schema`.
335+
336+
Usage:
337+
338+
```console
339+
$ ./artisan graphqlite:export-schema --output=schema.graphql
340+
```
341+
342+
This will export your GraphQL schema in SDL format. You can use this exported schema to import it in other
343+
tools (like graphql-codegen).

0 commit comments

Comments
 (0)