-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my_resource.data raises Graphiti::Errors::RecordNotFound in #create action after Graphiti::Resource#build(params) when the table is empty #458
Comments
Additionally is |
@dima4p , from our experience I can tell that it's not a good way to rely on |
We are using Pundit. I think, that it is important to have the ability to use Graphiti::Resource#build#data to use the new model for authorization. |
@dima4p , if you are using Graphiti under the hood, you can hook into model creation via the |
@dima4p , one more thing: keep in mind that with JSON:API you have the ability to sidepost multiple resources in one request and thus you will have to either parse the whole resource tree yourself or rely on Graphiti with the approach I mentioned above |
`When the table has no record returns @scope.resolve an empty Array.
In my controller there is
and I get
in the case.
The text was updated successfully, but these errors were encountered: