Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Getting a Subset of Fields

Normally, when you read data stored by Telerik Platform, you get all item fields in the response. However, you can choose to receive only a subset of all available fields for each item. This saves bandwidth and can improve your app performance.

To retrieve a subset of the items' fields, specify them using the select() Query method. Note that the Id field is always returned. For example, the following code returns only the Id, Author, and Location fields of each book item.

var el = new Everlive('your-app-id');
var data = el.data('Books');
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));
    });

See Also

Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.