I have a list of enums on an object but I’m having...
# prisma-whats-new
m
I have a list of enums on an object but I’m having trouble figuring out the query to create the object. Getting an error when I try this
Copy code
mutation {
creatObj(data:{
tags: [ENUM1,ENUM2]
}){id}
}
l
I can't remember where the docs are on this, but you'll want to make a tag node. E.g.
Copy code
type ObjTag {
...
  tag: String
}