json-server
json-server copied to clipboard
Any way to filter data based on whether a field's value is in specified array?
products = [
{
"id": 1,
"type": 'A'
},
{
"id": 2
"type": 'B'
},
{
"id": 3,
"type": 'A'
},
{
"id": 4,
"type": 'C'
},
{
"id": 5,
"type": 'C'
},
]
Can I filter products based on whether type in ['A', 'B']?