WherePattern

Description

Interface with the methods available to make a WHERE statement of a sub-query.

Methods

Sets the graph patterns the sub-query should match to retrieve the sub-solutions data.

Parameters

NameTypeDescription
Pattern<PatternToken> | Pattern<PatternToken>[]

Patterns the sub-query should match.

Returns

Object with the methods to keep constructing the sub-query.

WherePattern

Description

Constant with the utils for WherePattern objects.

Methods

createFrom<C extends Container<SubSelectToken>, O extends object>( container: C, object: O ): O & WherePattern

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

Parameters

NameTypeDescription
C

The related container with the data for the WherePattern statement.

O

The base base from where to create the WherePattern statement.

Returns

The WherePattern statement created from the object provided.