-
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.
feat(fieldsuggestions): Add documentation on how to configure field s…
…uggestion protection
- Loading branch information
ldebruijn
committed
Sep 24, 2023
1 parent
d83edcf
commit 9440a5a
Showing
1 changed file
with
3 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,9 @@ persisted_operations: | |
dir: "./my-dir" | ||
# Armor will look at all objects in the bucket and try to load persisted operations from any `.json` file | ||
gcp_bucket: "gs://somebucket" | ||
|
||
field_suggestions: | ||
enabled: true | ||
``` | ||
Alternatively go-graphql-armor can be configured using environment variables or command line arguments. | ||
|
@@ -60,8 +63,4 @@ To set up your project, make sure you run the `make dev.setup` script. | |
git clone [email protected]:ldebruijn/go-graphql-armor.git | ||
cd go-graphql-armor | ||
make dev.setup | ||
``` | ||
|
||
```http request | ||
curl -v -X POST -d "{ \"extensions\": { \"persistedQuery\": { \"sha256Hash\": \"foobar\"}} }" -H "content-type: application/json" http://localhost:8080/graphql | ||
``` |