rem
11/04/2017, 9:05 AMtaikn
11/04/2017, 10:02 AMgraphcool.yml
like this:
permissions:
- operation: User.read
authenticated: true
where User
is the name of the type you want to set read permissions topanzupa
11/04/2017, 10:10 AMrem
11/04/2017, 10:41 AMauthenticated: true
allows ALL authed users to read.panzupa
11/04/2017, 10:41 AMquery ($node_id: ID!, $user_id: ID!) {
SomeDocumentExists(
filter: {
id: $node_id,
createdBy: {
id: $user_id
}
}
)
}
User
createdBy
is of type User
query aboveangly
11/04/2017, 11:00 AMpanzupa
11/04/2017, 11:02 AM