Supporting nested upsert mutations
I have a central entity that has many tags (via a many-many relationship). I would like to be able to easily update the list of tags in a single query. Nested upsert mutations would fix this. I currently have to manually write plpgsql functions to do so.
Upserts are definitely on the todo list ... I think this would also solve the root of the issue in #15.
Maybe some code from https://github.com/einarjegorov/graphile-upsert-plugin can be reused?
https://github.com/einarjegorov/graphile-upsert-plugin/blob/94ea92e71e25a3c981feaa40cebcd0aad781f1af/index.js#L189-L199
my graphile-upsert-plugin fork is slightly more up-to-date, and includes a batch upsert plugin: https://github.com/micimize/graphile-upsert-plugin
Hi @mlipscombe any chance the PR for 15/16 will close this one out too?