-
-
Notifications
You must be signed in to change notification settings - Fork 466
Closed
Labels
5.xRelated to the 5.x release seriesRelated to the 5.x release seriesbugAn error within LighthouseAn error within Lighthouse
Description
Describe the bug
In the following query I get this error No query results for model [App\Models\Student] U3R1ZGVudDoy located in CanDirective.php, this was working this morning before update the package with the latest changes.
If I remove the @can directive works well.
student(id: ID! @globalId(decode: "ID") @eq): Student
@can(ability: "view", find: "id")
@findExpected behavior/Solution
Decode the ID field before pass it to @can
Lighthouse Version
dev-master
Metadata
Metadata
Assignees
Labels
5.xRelated to the 5.x release seriesRelated to the 5.x release seriesbugAn error within LighthouseAn error within Lighthouse