|
|
|
|
|
by foobazgt
482 days ago
|
|
I don't understand why you consider this to be a burden. The gateway will calculate the depth / quantities of any query for you, so you're just setting a config option. When you create a REST API, you're making similar kinds of decisions, except you're baking them bespokely into each API. Query whitelisting makes sense when you're building an API for your own clients (whom you tightly control). This is the original and most common usecase for graphql, though my personal experience is with using it to provide 3rd party APIs. It's true that you can't expect to do everything identically to how you would have done it with REST (authz will also be different), but that's kind of the point. |
|