Support fetching/returning data from mutations
Currently mutations return only the primary key of the created record, but it would be nice to be able to fetch the full record (including e.g. defaulted values) as part of a mutation.
-
Eugene Gusarov commented
Data connect supposed to help speedup things. But instead, we are getting stuck with trivial missing things like this one.
-
Alex Patterson commented
Does this fit with chaining together mutations as well?
Like if I have data from the result I would then update / create another mutation.
All of them happening in a transaction so they fail if anything goes wrong.
Might be related
https://stackoverflow.com/questions/79482423/firebase-dataconnect-mutation-nested-create -
Danny Ferrin commented
Much less
Boilerplate
Code. -
Tim Lloyd commented
This would be nice and save on an extra query in some cases to fetch the updated data