Fetch records

If you want to fetch all records you can call select() on your dataset and use the execute() method to fetch all the records.

[..]
sdk.jexiaClient(fetch).init({appUrl: "your Jexia App URL", key: "<your-apikey>", secret: "<your-secret>"}, dataModule).then( (initializedClient) => {
  let posts = dataModule.dataset("posts");
  let unexecutedQuery = posts.select();
  let executedQueryPromise = unexecutedQuery.execute();
  executedQueryPromise.then( (records) => {
    // you can start iterating through the posts here
  }).catch( (error) => {
    // there was a problem retrieving the records
  });
});
[..]

If you watch closely, you will see that the API is chainable, so you can write it in a much less verbose way:

[..]
sdk.jexiaClient(fetch).init({appUrl: "your Jexia App URL", key: "<your-apikey>", secret: "<your-secret>"}, dataModule).then( (initializedClient) => {
  dataModule.dataset("posts").select().execute().then( (records) => {
    // you can start iterating through the posts here
  }).catch( (error) => {
    // there was a problem retrieving the records
  });
});
[..]

Advanced users:

In order to obtain deeper insights, please visit the API reference