Skip to content

Commit

Permalink
feat(fieldsuggestions): Add documentation on how to configure field s…
Browse files Browse the repository at this point in the history
…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.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
```

0 comments on commit 9440a5a

Please sign in to comment.