WhereClause
Description
Interface with the methods available to make a WHERE statement.
Methods
where( patternFunction: (builder: PatternBuilder) => Pattern<PatternToken> | Pattern<PatternToken>[] ): GroupClause<T> & TSpecifies 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
| Name | Type | Description |
|---|---|---|
| (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
| Name | Type | Description |
|---|---|---|
| Factory<C, T> | The factory to create the generic finish of the | |
| C | The related container with the data for the | |
| O | The base base from where to create the |
Returns
The WhereClause statement created from the object provided.