Use
本页描述了如何使用 Cypher®.Use 类创建 USE 子句。
要创建 Use 子句,向 Cypher.use 传入已有查询,以在查询前添加 USE 语句。
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);
这将生成以下查询
USE mydb
MATCH (this0:Movie)
RETURN this0