Retrieve fields

You can use the .fields method to define what fields you want to retrieve. Now only these fields are retrieved so that overhead will be reduced and no unnecessary information is fetched.

Example:

import { field } from "SDK location"

[..] posts.select().fields("id", "title").execute().then( (records) => {

// the individual record objects will only have the two properties defined above });

[..]

Advanced users:

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