-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc(schema): Add documentation for schema options
- Loading branch information
ldebruijn
committed
Dec 22, 2023
1 parent
f73dec5
commit 1455da7
Showing
3 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Schema | ||
|
||
`go-graphql-armor` needs to know your schema in order to perform its validations. | ||
|
||
<!-- TOC --> | ||
|
||
## Configuration | ||
|
||
```yaml | ||
# ... | ||
|
||
schema: | ||
# Path to a local file in which the schema can be found | ||
path: "./schema.graphql" | ||
# Automatically reload the schema file. | ||
# It will reload the contents of the file referenced by the `schema.path` configuration option | ||
# after each `schema.auto_reload.interval` has passed. | ||
auto_reload: | ||
# Enable automatic file reloading | ||
enabled: "true" | ||
# The interval in which the schema file should be reloaded | ||
interval: 5m | ||
``` | ||
## Metrics | ||
``` | ||
go_graphql_armor_schema_reload{state} | ||
``` | ||
|
||
| `state` | Description | | ||
|-----------|-------------------------------------------------------------| | ||
| `failed` | Reloading the file from local disk has failed | | ||
| `success` | The schema file was successfully reloaded from local disk | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters