Skip to content

Commit

Permalink
fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Aug 14, 2024
1 parent b7ba38c commit 1bfe212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/6/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,15 @@ directive @canFind(
) repeatable on FIELD_DEFINITION
```
### canRoot
### @canModel
```graphql
"""
Check a Laravel Policy to ensure the current user is authorized to access a field.

Check the policy against the root model.
"""
directive @canRoot(
directive @canModel(
"""
The model name to check against.
"""
Expand Down
4 changes: 2 additions & 2 deletions docs/master/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,15 @@ directive @canFind(
) repeatable on FIELD_DEFINITION
```
### canRoot
### @canModel
```graphql
"""
Check a Laravel Policy to ensure the current user is authorized to access a field.

Check the policy against the root model.
"""
directive @canRoot(
directive @canModel(
"""
The model name to check against.
"""
Expand Down

0 comments on commit 1bfe212

Please sign in to comment.