Find All Documents Paging Order By Created On Not Updated On

0 votes

i am trying to find all document paging order by created on  its returning all document order by updated on

how to fix this problem.

storageService.findAllDocuments(dbName, collectionName, max, offset, app42callback )

asked Jun 4, 2014 in App42 Cloud API-BaaS by ashish (10 points)

1 Answer

0 votes

Hi ashish,

Can you share the query for which you are finding the document based on created .

So it will help us to tell you that what is wrong with the document.

Meanwhile you can try the code snippet which is given below to find the document based on created on : -

HashMap<String, String> otherMetaHeaders = new HashMap<String, String>();
otherMetaHeaders.put("orderByAscending", "_$createdAt");
storageService.setOtherMetaHeaders(otherMetaHeaders);
storageService.findAllDocuments(dbName, collectionName, max, offset, app42callback )

Let me know if its help.

answered Jun 4, 2014 by SACHIN25 (190 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...