Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
json-server : how to do complex queries

I have a set of users each with a team id.

I have a set of records which are 'owned' by a user.

e.g.

users: [
{ id: 1, teamId: 1234 },
...
],
records: [
{ id: 1, usersId: 1 },
....
]

Can I issue an API call to json-server that either

  1. gets all records owned by users with a specific teamid?

    /records?users.teamId=1234

    According to the API guide I've found, this should work but doesn't. Adding _expand=users onto the query does seem to show the tables are linked.

  2. alternatively gets all records if I provide a list of userids to filter on?

    /records?usersId=[1,2,3,4]

Is there any complete documentation on what you can do on the json-server API?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!