Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 548 Bytes

README.md

File metadata and controls

29 lines (27 loc) · 548 Bytes

LoopbackQuery

Note: LoopbackQuery is still a work in progress.

Example:

String order = "dateModified ASC";
String[] fields = {"transactions", "houses", "devices"};
Query query = new Query.Builder().include(
        new Include.Builder()
        .order(order).scope(
              new Scope.Builder().fields(fields)))
        .build();

Output with toString():

{
  "include": {
    "scope": {
      "fields": [
        "transactions",
        "houses",
        "devices"
      ]
    },
    "order": "dateModified ASC"
  }
}