Skip to content

Commit

Permalink
Fix Auth Query Rule Example (#117)
Browse files Browse the repository at this point in the history
Fixed invalid query syntax.
  • Loading branch information
verneleem authored Mar 12, 2021
1 parent 85eced2 commit 2c1f6c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/graphql/authorization/directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ type Author {

interface Post @auth(
query: { rule: """
query ($USER: String!) {
queryPost(filter: { author : { id: { eq: $USER } } } ) {
id
query ($USER: ID!) {
queryPost {
author(filter: { id: [$USER] }) {
id
}
}
}"""
}
Expand Down

0 comments on commit 2c1f6c2

Please sign in to comment.