json-server
json-server copied to clipboard
Search on multiple collection?
Can we search on multiple collection.
Example: /db?q=......
or
Example: /db?title=A&otherField=c
{
"collectionA": [
{
"title": "A"
},
{
"title": "B"
}
],
"collectionB": [
{
"name": "name A"
},
{
"name": "name B"
}
]
}
If there is a relationship between the tables then https://github.com/typicode/json-server#relationships otherwise each collection is a separate table