Aaron Waller
12/27/2021, 12:14 PMtype Mutation {
createPost(name: String, content: String): Post!
}
and my resolver like this:
Mutation: {
createPost: (parent, args) => {
return prisma.content.create({
data: {
name: args.name,
content: args.content
}
})
}
}
it is working fine
The problem is I want to keep the PostCreateInput input to add a lot of fields thereMaciek K
12/27/2021, 1:24 PM