Open bertyhell opened 4 years ago
This is a great suggestion, and fairly common usecase. Will check with server team on this.
Okay so it is possible to do this currently, there's a bulk
request type for the Metadata API that takes an array of operations to perform at once:
https://hasura.io/docs/1.0/graphql/core/api-reference/schema-metadata-api/index.html
Going to close for now but please re-open the issue if this doesn't work for your usecase :+1: @bertyhell
I'll make a PR to add a link from the permissions api page to the bulk api docs. Maybe reopen this to track that change?
currently you have these endpoints to create permissions one at a time. In my current project we have 73 tables, and each table can have 4 operations (select, insert, update, delete), so that means 292 api calls to set the permissions for every table.
It would be nice to have a bulk endpoint. Something like this:
and another for bulk delete: