hasura / hasura/graphql-engine

[Question] Actions & Nested Inserts

Open
#4,470 6 comments 2 reactions 0 assignees View on GitHub
c/actions k/question
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

I am trying to use Actions and from my understanding, Actions seem to take away from the flexibility that Hasura offers. I have a `Customer` table with an array relationship to `Address` table, and there is a custom logic for validating addresses.

If a custom Action is created -- insert_address, will that action apply if I do a nested insert of Address along with Account through the relationship? It looks like I will have to insert Account first and then insert Addresses through the action.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.