jonoirwinrsa
02/02/2018, 9:44 PM# User can only read projects that belong to the same client or User is Admin
query read($node_id: ID!, $user_id: ID!) {
SomeProjectExists(
filter: {
id: node_id,
client: {
users_some: {
id: $user_id
}
}
})
SomeUserExists(
filter: {
id: $user_id,
userType: Admin
})
}
nilan
02/02/2018, 9:47 PMSomeProjectExist
, one for SomeUserExists
.jonoirwinrsa
02/02/2018, 9:55 PMQuery Permission Error for permission 'NoName': There was more than one query and you did not provide a query name
nilan
02/02/2018, 10:06 PMjonoirwinrsa
02/02/2018, 10:16 PM