Is it possible, when doing an update mutation, to ...
# orm-help
d
Is it possible, when doing an update mutation, to keep the value that’s already there but add to it. For example, if there’s a list and you want to do an update to add something. I’ve checked the schema and can’t see anything about keeping what’s already stored.
n
Is it a scalar list, or a
to-many
relation?
d
Hi again, Nilan. In the example a few comments up it’s the “versions” in the Book type.
n
Again, looking up the schema can help 🙂 You can use the
create
,
connect
and
upsert
nested mutations to add new nodes to the
versions
field.