Skip to content

Commit

Permalink
Remove query key (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMacaulay authored Nov 13, 2024
1 parent 3ba7f52 commit e6c814b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/pages/en/developing/developer-faqs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ By default, query responses are limited to 100 items per collection. If you want
someCollection(first: 1000, skip: <number>) { ... }
```

### 23. If my dapp frontend uses The Graph for querying, do I need to write my query key into the frontend directly? What if we pay query fees for users – will malicious users cause our query fees to be very high?
### 23. If my dapp frontend uses The Graph for querying, do I need to write my API key into the frontend directly? What if we pay query fees for users – will malicious users cause our query fees to be very high?

Currently, the recommended approach for a dapp is to add the key to the frontend and expose it to end users. That said, you can limit that key to a hostname, like _yourdapp.io_ and subgraph. The gateway is currently being run by Edge & Node. Part of the responsibility of a gateway is to monitor for abusive behavior and block traffic from malicious clients.

Expand Down

0 comments on commit e6c814b

Please sign in to comment.