Hi @davimacedo, i’m unable to get your code to work.
Scenario:
GET call to:
https://YOUR.PARSE-SERVER.HERE/classes/List
Result:
{
“results”: [
{
“objectId”: “FBNaDwSYcO”,
“Title”: “Test1”,
“shared”: true,
“enabled”: true,
“createdAt”: “2020-08-17T06:16:00.238Z”,
“updatedAt”: “2020-08-17T15:03:10.990Z”,
“createdBy”: {
“__type”: “Pointer”,
“className”: “_User”,
“objectId”: “eiKlmlIy6i”
},
“sharedWith”: {
“__type”: “Relation”,
“className”: “_User”
}
},
{
“objectId”: “SDyLEXbgAM”,
“createdBy”: {
“__type”: “Pointer”,
“className”: “_User”,
“objectId”: “eiKlmlIy6i”
},
“Title”: “Test2”,
“shared”: true,
“enabled”: true,
“createdAt”: “2020-08-17T15:21:10.009Z”,
“updatedAt”: “2020-08-17T15:21:35.435Z”,
“sharedWith”: {
“__type”: “Relation”,
“className”: “_User”
}
}
]
}
Scenario:
GET call to
https://YOUR.PARSE-SERVER.HERE/classes/List?where={"$relatedTo":{“object”:{"__type":“Pointer”,“className”:“User”,“objectId”:“wHBFNlyTOs”},“key”:"sharedWith"}}
Result:
{
"results": []
}
Only this is working at the moment:
Scenario:
GET call to
https://YOUR.PARSE-SERVER.HERE/classes/List?where={“shared”: true,“enabled”: true,“sharedWith”:{"__type":“Pointer”,“className”:“User”,“objectId”:“wHBFNlyTOs”}}