neo4j/cypher-builder

Remove parameter `previous` from `Pattern`

Closed this issue · 0 comments

Currently, the internal parameter previous is exposed in the Pattern constructor.

This class should probably be inherited into a new Pattern exposed to the user without this extra parameter

constructor(node: NodeRef, previous?: PartialPattern) {
    super(node);
    this.previous = previous;
}