-
-
Notifications
You must be signed in to change notification settings - Fork 466
Closed
Labels
docsConcerns the documentationConcerns the documentation
Description
Describe the bug
In the documents provide that you can use other where clauses from Laravel providers. In these cases whereIn and whereNotIn, I got an error.
Expected behavior/Solution
Current solution: Using @in directive.
Expected behavior: Have the data with whereIn or whereNotIn filter.
Reason: This line must be the value for these clauses, not the operator.
Steps to reproduce
- create a query and use
@wheredirective withclause: "whereIn"attribiute.
type Query {
dog(
id: ID @where(clause: "whereIn", key: "id")
)}- run the query.
Output/Logs
Click to expand
"debugMessage": "Illuminate\\Database\\Query\\Builder::cleanBindings(): Argument #1 ($bindings) must be of type array, string given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php on line 972"
Lighthouse Version
v5.25.0
Metadata
Metadata
Assignees
Labels
docsConcerns the documentationConcerns the documentation