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

Query [class]

Description

A query class used to describe a request that will be made to the Telerik Backend Services JavaScript API.

Members

Instance members

Name Return type Description
build() Object Builds an object containing the different expressions that will be sent to Telerik Backend Services. It basically translates any previously specified expressions into standard queries that Backend Services can understand.
expand(expandExpression) Query Sets an expand expression for the current query. This allows you to retrieve complex data sets using a single query based on relations between data types.
order(field) Query Sorts the items in the current query in ascending order by the specified field.
orderDesc(field) Query Sorts the items in the current query in descending order by the specified field.
select(fieldsExpression) Query Applies a fields selection to the current query. This allows you to retrieve only a subset of all available item fields.
skip(value) Query Skips a certain number of items from the beginning before returning the rest of the items. Used for paging.
take(value) Query Takes a specified number of items from the query result. Used for paging.
where() WhereQuery Defines a filter definition for the current query.
where(filter) Query Applies a filter to the current query. This allows you to retrieve only a subset of the items based on various filtering criteria.
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.