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
This does not work for me. Returns Not found. I use version ^1.0.0-beta.0.
Not found
^1.0.0-beta.0
For nested resources to work, you need to structure your db.json this way:
db.json
{ "environments": [ { "id": 12 }, { "id": 19 } ], "reports": [ { "id": 17, "environmentId": 12 }, { "id": 25, "environmentId": 12 } ] }
Then /environments/12/reports should return reports that have environmentId === 12
/environments/12/reports
environmentId === 12
Originally posted by @typicode in #72 (comment)
The text was updated successfully, but these errors were encountered:
Same issue for me: #1567
Did you get over this somehow? What runtime are you using? npm/bun/deno?
Sorry, something went wrong.
No branches or pull requests
This does not work for me. Returns
Not found
. I use version^1.0.0-beta.0
.For nested resources to work, you need to structure your
db.json
this way:Then
/environments/12/reports
should return reports that haveenvironmentId === 12
Originally posted by @typicode in #72 (comment)
The text was updated successfully, but these errors were encountered: