Skip to content

Query API

John Huang edited this page Dec 10, 2016 · 2 revisions

Query By date

@requires dateField (field: createdAt, updated, scheduleAt...)
@optional date (date format)
@optional from (date format)
@optional to (date format)
@optional last (int)
@optional next (int)

1. by default, return today
2. return order date>  from/to > last/next

*example:
/orders?dateField=scheduleAt
/orders?dateField=scheduleAt&last=7

Lookup (left join)

@optional nolookup(nolookups)

1. by default will return related databases (like left join or populate)

*example:
/customer?nolookup=true
/customer?nolookups=true
(will return entities only, no left join)
Clone this wiki locally