You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OrderBy in DB API issue

Question
3
Views
0
Comments
edited Dec 7, 2017 8:00AM in Digital Assistant and Mobile

Summary

OrderBy in DB API issue

Content

Hi,

How do we use order by in DB API. I am trying to get the data in desc order by modifiedOn property but it dosnt seem to be working as expected.

 req.oracleMobile.database.getAll(            'SOMETABLE', {orderBy: 'modifiedOn:desc'}, httpOptions).then(            function (result) {                console.log(result.result);                res.send(result.statusCode, result.result);            },            function (error) {                console.log('Error:' + error.error);                res.send(error.statusCode, error.error);            }        );

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!