Star

Created With
You are viewing the documentation for Neogma v1. This version is in maintenance mode, and you can upgrade to v2 following the migration guide. For the latest features and improvements, see the Neogma v2 documentation.

linkWith

QueryBuilderParameters['WithI']

linkWith by using a literal string

A literal string will be used as is.

1linkconst queryBuilder = new QueryBuilder()

2link .with('a, b'); /* --> literal string to use */

3link

4linkconsole.log(queryBuilder.getStatement()); // WITH a, b

5linkconsole.log(queryBuilder.getBindParam().get()); // {}

linkWith by using an array of strings

An array of strings can be used, which will be joined with a comma.

1linkconst queryBuilder = new QueryBuilder()

2link .with(['x', '{ y: x }']);

3link

4linkconsole.log(queryBuilder.getStatement()); // WITH x, { y: x }

5linkconsole.log(queryBuilder.getBindParam().get()); // {}

WithWith by using a literal stringWith by using an array of strings

Introduction Getting Started

Modelschevron_right

Sessions and Transactions

Query Builderchevron_right
Query Runnerchevron_right

Bind Parameters

Where Parameters