Hello guys, I am currently struggling with the <pr...
# prisma-client
e
Hello guys, I am currently struggling with the prisma.io documentation. I don't know where my question fits best even though it is a server-side question I think it fits more here in the prisma-client channel since there is no other one for the server side thing. I can't find any reference where I can learn how I use an array of IDs to connect an Object Type with another one. Example: Role:
Copy code
type Role {
    id: ID!
    title: String!
    permissions: [Permission!]!
}
Permission:
Copy code
type Permission {
    id: ID!
    title: String!
}
Mutation:
Copy code
createRole(
        title: String
        permissions: [ID!]
    ): Role
Resolver:
Copy code
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