Hey, playing with Prisma, I was wondering if there...
# prisma-whats-new
m
Hey, playing with Prisma, I was wondering if there was a way to use ids given via inputs to mutations for creating entities
n
@Mike you can add a
myId: String! @unique
field to all your types 🙂
m
i suppose that works
thanks
would be nice if i could keep it ID shrug
no need to have both, but what can you do
n
the
id
field is used internally for uniqueness, relations, etc. You don't have to expose it in your data model though
made an update here: https://github.com/graphcool/prisma/issues/1278#issuecomment-379177261 maybe that discussion is also interesting to you, @Mike
m
thanks! yes it is
n
cheers! 🙂 keep the feedback coming, it's very appreciated!