Entrepreneur3
09/23/2018, 1:13 PMtype Role {
id: ID!
title: String!
permissions: [Permission!]!
}
Permission:
type Permission {
id: ID!
title: String!
}
Mutation:
createRole(
title: String
permissions: [ID!]
): Role
Resolver:
createRole(root, args, context) {
return context.prisma.createRole(
{
title: args.title,
permissions: {
connect: args.permissions <-- This does not work I get always an error from the GraphQL playground, what's the solution?
}
}
)
},
I am new to this kind of server side programming I am coming from the iOS-World. Would appreciate any help since I kinda feel that the prisma.io documentation lacks on information. I don't know if that is the case but it really feels so.
If that questions fits somewhere else better than here then please tell me