With XrmQuery you utilize intellisense to create and structure your queries to your Dynamics 365/CRM system.
Here is a small example where a complex filter is applied to a RetrieveMultiple on accounts:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
The execute function also has the possibility to add a callback handler for errors and onComplete, like the standard SDK.REST API. These have been made optional, since they aren't necessary for a succesful run of the function.
Check out the generated declaration file at
dg.xrmquery.rest.d.ts to see what can be
accomplished with XrmQuery!