I am trying to fetch data from parse-cloud using parse-rest-api,but don't know what's going wrong. I have four classes in parse-cloud
-
Album : User can be tagged to album. An admin can have multiple albums.
-
User : Contains all users including admin.
-
AlbumUsers : Contains all users tagged to a album. Contains albumId,userId.
-
AdminUsers : Contains all the users tagged in albums of admin.
So now i want to get all the users of logged in admin who's not included in currently open album.
And this is my query for parse-rest-api :
where: { albumId: { "$inQuery":{where:{createdBy: this.get('session.userId'), objectId : {"$ne" : this.modal('album').id}}},"className":"Album"},status: 'tagged'}})
It keeps sending back error 102 : bad type for %!s(MISSING)
Aucun commentaire:
Enregistrer un commentaire