It looks like no and `upsert` may be dead as a nes...
# prisma-whats-new
l
It looks like no and
upsert
may be dead as a nested method. https://github.com/graphcool/prisma/issues/1280
l
Thanks for the link! It looks like that's a top level issue. I'd like to do something like...
Copy code
mutation {
  createUser({ data: {
     name: "Dennis",
     device: { upsert: { uuid: "stuff"} }
  }
}
h
Upsert have different syntax
you need to have where, create, update
l
That example shows upserting a user. I'm looking to create a User, and upsert a device. I don't know if a device with that uuid has been created by a previous mutation, so I don't know if I need to
connect
or
create
. Obviously I can manually check, and it seems like that's what I need to do