Getting a Subset of Fields

Getting a Subset of Fields

When you read data from Telerik Platform, you can choose to receive only a subset of all available fields for each item. This saves bandwidth and can improve your app performance because data is fetched from the server faster. By default, all fields are returned from the server.

To retrieve a subset of the fields, you have to pass them to the select() method. Note that the Id field will be always returned.

var el = new Everlive('your-app-id');
var data = el.data('type-name');
var query = new Everlive.Query();
query.select('Author', 'Location');
data.get(query) // filter
    .then(function(data){
        alert(JSON.stringify(data));
    },
    function(error){
        alert(JSON.stringify(error));
    });
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.