Use
This page describes how to create a USE clause with the Cypher®.Use class.
To create an Use clause, pass an existing query to Cypher®.use to prepend a USE statement before the query:
const n = new Cypher.Node();
const query = new Cypher.Match(new Cypher.Pattern(n, { labels: ["Movie"] })).return(n);
const useQuery = new Cypher.Use("mydb", query);
This generates the following query:
USE mydb
MATCH (this0:Movie)
RETURN this0