Skip to main content
Version: v2.x

Column Presets

Introduction

While this is not strictly a permission configuration, defining role-based column presets for insert and update operations on any column automatically removes the ability to manually insert or update it for that role.

The respective fields will also be removed from the generated GraphQL schema for that role.

This setup very useful in avoiding sensitive user information being sent in the request and instead leveraging session variables or static data for that information.

You can define column presets for either insert or update operations in the Hasura Console in Data -> [table] -> Permissions -> insert / update as follows:

Set column preset