Skip to content

Commit

Permalink
Update docs for v6
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Jul 20, 2023
1 parent 6b24123 commit 37e64ec
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/6/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -3077,13 +3077,14 @@ scalar DateTime
Adds a scope to the query builder.
The scope method will receive the client-given value of the argument as the second parameter.
This also works with custom query builders, it simply calls its methods with the argument value.
"""
directive @scope(
"""
The name of the scope.
Defaults to the name of the argument.
"""
name: String
"""
The name of the scope or method on the custom query builder.
Defaults to the name of the argument or input field.
"""
name: String
) repeatable on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
```

Expand Down

0 comments on commit 37e64ec

Please sign in to comment.