开发者

Using ORDER By with DataNucleus Rest API and GAE Datastore

开发者 https://www.devze.com 2023-01-21 05:36 出处:网络
I\'m successfully pulling back my objects however, I would like for them to already be sorted by a field in the object.

I'm successfully pulling back my objects however, I would like for them to already be sorted by a field in the object.

I have this working:

new Ajax.Request("/dn/com.emooney.meeting.beans.Meeting?groupName=='"+name+"'"

But I want to do something like this:

new 开发者_如何学CAjax.Request("/dn/com.emooney.meeting.beans.Meeting?groupName=='"+name+"'"&ORDERBY='day'

I've tried the following:

&ORDERBY=='day'

&ORDERBY==day

&ORDERBY='day'

&ORDERBY=day

Any ideas? I can't find any documentation on how to orderby when using DataNucleus's RestAPI.

Thanks, Eric


Looking at the code (which I didn't write) it only allows the WHERE clause currently. Guess you'd have to implement the ordering over at your side.

0

精彩评论

暂无评论...
验证码 换一张
取 消