Start a new topic

How can I get all records saved by the current user?

In my app all the users are saving data in one big collection. How can I get just the objects created by the current user?
1 Comment

You can use a query to get a list of all entities created by a specific user. For example, to get all entities created by the current user, try the following query:

Query q = new Query().equals("_acl.creator", myKinveyClient.user().getId());

myKinveyClient.appData("myCollection", MyEntity.class).get(q, new KinveyListCallback() {


public void onSuccess(MyEntity[] result) {

//got entities created by the current user



public void onFailure(Throwable error) {

//something went wrong!


Login or Signup to post a comment