Start a new topic
Answered

How can I sort related object's data by date after fetching from kinveyRef

When I fetch related object's data from kinveyRef I want to get it sorted by date. How can I do it ? I hope that it can be possible in next way for example:

KCSQuerySortModifier* dateSort = [[KCSQuerySortModifier alloc] initWithField:@"example._kmd.ect" inDirection:kKCSAscending];

 


However kinveyRef doesn't have _kmd info


{
    "_type": "KinveyRef",
    "_id": "40DC55DF-AAF7-430B-9898-3FBD36AE5F06",
    "_collection": "Books"
  }

 Could u please help me ?


Best Answer
Wood,

Searching or sorting on data inside an object referenced by a KinveyRef is not currently supported. You could either sort on the client side after receiving the response, or write a Business Logic post-fetch hook to do the same.

Thanks,
Pranav
Kinvey Support

 

1 Comment

Answer
Wood,

Searching or sorting on data inside an object referenced by a KinveyRef is not currently supported. You could either sort on the client side after receiving the response, or write a Business Logic post-fetch hook to do the same.

Thanks,
Pranav
Kinvey Support

 

Login or Signup to post a comment