Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Query<T>

Represents an instance of a Query expression. Usage example:

const query = new Query(q => q.TypeIs(ContentTypes.Task).And.Equals('DisplayName', 'Test'))
console.log(query.toString());   // the content query expression

Type parameters

Hierarchy

Index

Constructors

Methods

Constructors

constructor

  • new Query(build: function): Query

Methods

AddSegment

Exec

  • Method that executes the Query and creates an OData request

    Parameters

    • repository: BaseRepository

      The Repository instance

    • path: string

      The Path for the query

    • Default value odataParams: IODataParams<T> = {}

      Additional OData parameters (like $select, $expand, etc...)

    Returns Observable<QueryResult<T>>

    An Observable that will publish the Query result

toString

  • toString(): string

Generated using TypeDoc