There are two documents
product : {
name : string,
price : integer
}
score : {
product_id : {
'type': 'objectid',
'required': True,
'data_relation' : {
'resource': 'product ',
'field': '_id',
'embeddable': True
},
region : string,
score : integer,
}
I need to get all the scores of a certain region sorted by product price.
when I use ?embedded={"product_id":1}&sort=[("product_id.price", -1)]
as the parameter of GET request. But it seems doesn't work.