Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
I cannot pass Test 11 (A GET request to /api/users/:_id/logs will return the user object with a log array of all the exercises added.), even though I am including the log property in the response.

I cannot pass Test 16 ( You can add from , to and limit parameters to a GET /api/users/:_id/logs request to retrieve part of the log of any user. from and to are dates in yyyy-mm-dd format. limit is an integer of how many logs to send back.), but I have added the query params.

Your project link(s)
boilerplate-project-exercisetracker - Replit

Challenge:
Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

It looks like you are returning all exercises from all users.

The exercise array is empty in the filter test. I think you are trying to use $gte $lte on strings, not dates. You can use the Date type in the schema and for the document and still change the response to be what the requirements are asking for.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.