cryptomafia
11/18/2017, 1:14 PMkguller
11/18/2017, 1:45 PMjimthedev
11/18/2017, 4:17 PMdaniele
11/18/2017, 4:19 PMdaniele
11/18/2017, 4:19 PMextend type Mutation {
signupUser(email: String!, password: String!, name: String!, surname: String!, roles: [Role]!): SignupUserPayload
}
daniele
11/18/2017, 4:19 PMGlobal
✖ Schema Extension Error for function 'signup': Relations are currently not supported. Field 'roles'
daniele
11/18/2017, 5:09 PMjimthedev
11/18/2017, 5:11 PMdaniele
11/18/2017, 5:11 PMdaniele
11/18/2017, 5:14 PMdaniele
11/18/2017, 5:15 PMtype User @model {
id: ID! @isUnique
roles: [Role!]! @relation(name: "UserOnRole")
}
daniele
11/18/2017, 5:15 PMtype Role @model {
id: ID! @isUnique
name: String!
users: [User!]! @relation(name: "UserOnRole")
}
daniele
11/18/2017, 5:15 PMdaniele
11/18/2017, 5:15 PMmutation {
updateUser(id: "cja5iaehtza09013939hwk9vw",
roles: ["cja5esk7z7ix50131lbsuutum"] ) {
id
}}
daniele
11/18/2017, 5:35 PMrein
11/18/2017, 6:03 PMConnorelsea
11/18/2017, 8:34 PMuser
11/18/2017, 8:37 PMhttps://prisma.slack.com/files/U823D10NM/F823D8KTK/image.png▾
^0.1.0
user
11/18/2017, 8:40 PMhttps://prisma.slack.com/files/U823D10NM/F823D8KTK/image.png▾
Marton
11/18/2017, 9:17 PMdaniele
11/18/2017, 9:23 PMError: Network error: Cannot read property 'length' of undefined
daniele
11/18/2017, 9:23 PMdaniele
11/18/2017, 9:24 PMdaniele
11/19/2017, 5:47 PMdaniele
11/19/2017, 5:47 PMpermissions:
- operation: Company.read
authenticated: true
daniele
11/19/2017, 5:47 PMdaniele
11/19/2017, 5:47 PMAuthorization:xxxx
daniele
11/19/2017, 5:48 PMnilan
11/19/2017, 5:48 PMdaniele
11/19/2017, 5:48 PM