这是indexloc提供的服务,不要输入任何密码
Skip to content

Support for column presets in UPDATES #1449

@dafrie

Description

@dafrie

From discussion on Discord:
If you want to automatically set a column to a session variable (such as the current X-Hasura-User-Id), you can do this on INSERT with the column presets functionality below
https://docs.hasura.io/1.0/graphql/manual/schema/default-values/column-presets.html

Is there a specific reason, why the same functionality is not supported on UPDATE? If not, could this feature be added?
My use case: User A creates record 1. User B later updates record 1. Ideally, there is a column who tracks who created and who last edited the record.

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolec/serverRelated to servere/intermediatecan be wrapped up in a weekk/enhancementNew feature or improve an existing featurep/highcandidate for being included in the upcoming sprint

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions