WhereClause

Description

Interface with the methods available to make a WHERE statement.

Methods

where( patternFunction: (builder: PatternBuilder) => Pattern<PatternToken> | Pattern<PatternToken>[] ): GroupClause<T> & T

Specifies the graph patterns the query should match to retrieve the solutions results.

This pattern are created by a pattern constructor function that receives a PatternBuilder which is a class that exposes the possible elements and configurations the patterns chan have.

Parameters

NameTypeDescription
(builder: PatternBuilder) => Pattern<PatternToken> | Pattern<PatternToken>[]

Function that retrieves a pattern or an array of patterns to match.

Returns

Object with the methods to keep constructing the query.

WhereClause

Description

Constant with the utils for WhereClause objects.

Methods

createFrom<C extends Container<QueryToken<QueryClauseToken>>, T extends FinishClause, O extends object>( genericFactory: Factory<C, T>, container: C, object: O ): O & WhereClause<T>

Factory function that allows to crete a WhereClause from the object provided.

Parameters

NameTypeDescription
Factory<C, T>

The factory to create the generic finish of the WhereClause statement.

C

The related container with the data for the WhereClause statement.

O

The base base from where to create the WhereClause statement.

Returns

The WhereClause statement created from the object provided.