We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using Laravel 10 an spatie/laravel-query-builder
{ "id": "2", "type": "tickets", "attributes": { "code": "64a2ec21d75e4", "total_amount": "75.00", "created_at": "2023-07-03T15:41:21.000000Z", "updated_at": "2023-07-03T15:41:59.000000Z" }, "relationships": { "user": { // The key attributes is not present "data": { "type": "users", "id": "1", "meta": {} }, "meta": {}, "links": {} } }, "meta": {}, "links": {} }
The text was updated successfully, but these errors were encountered:
Thats correct, they shouldnt be present in the relationships. You need to include them with the query builder. See https://github.com/timacdonald/json-api/#example-request-and-response then they will be in the included section.
Sorry, something went wrong.
as @bolivir mentioned, you need to "include" the relationships to see their attributes.
This is part of the JSON:API specification.
No branches or pull requests
I'm using Laravel 10 an spatie/laravel-query-builder
The text was updated successfully, but these errors were encountered: