Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix build prefix docs #511

Merged
merged 2 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/how-to/customize-cypher.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ If merging these queries before executing `.build()` (e.g. using `Cypher.utils.c
[source, javascript]
----
const cypher=`
${match1.build("movie")}
${match2.build("person")}
${match1.build({prefix: "movie"})}
${match2.build({prefix: "person"})}
`
----

Expand Down
4 changes: 3 additions & 1 deletion src/references/Param.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { TestClause } from "../utils/TestClause";
describe("Params", () => {
test("Ignore unused parameters", () => {
const param1 = new Cypher.Param(1999);
// eslint-disable-next-line @typescript-eslint/no-unused-vars

const param2 = new Cypher.Param(2000); // Param created but not used by cypher builder

const movieNode = new Cypher.Node();
Expand All @@ -34,6 +34,8 @@ describe("Params", () => {

const { params } = query.build();

// Param 2 should exist for this test to be relevant
expect(param2).toBeInstanceOf(Cypher.Param);
expect(params).toMatchInlineSnapshot(`
{
"param0": 1999,
Expand Down
Loading