aleena reji
aleena reji

Reputation: 119

Is there any way to setup permission for entire schema (entire tables) in Hasura graphql instead of giving permission to each table?

I want to give permission to entire schema in Hasura graphql (all tables). Is this possible to give permission to entire table instead of giving permission to one by one table. No access control rules in the table. Please help me..

Upvotes: 1

Views: 386

Answers (1)

rollingBalls
rollingBalls

Reputation: 1878

You can't do it from the web console. If you have a large amount of tables, perhaps it's worth to script it. You can introspect the tables from PG and then use Hasura's metadata API to setup the permissions.

Metadata API

Upvotes: 1

Related Questions