Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

Commit 7d829df

Browse files
author
Kristian Aurlien
committed
enable session config in searchSchema
1 parent 837baf2 commit 7d829df

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,13 @@ export const assertSchema = ({
341341
});
342342
};
343343

344-
export const searchSchema = async ({ driver, schema, debug = false }) => {
345-
const session = driver.session();
344+
export const searchSchema = async ({
345+
driver,
346+
schema,
347+
debug = false,
348+
sessionParams = {}
349+
}) => {
350+
const session = driver.session(sessionParams);
346351
// drop all search indexes, given they cannot be updated via a second CALL to createNodeIndex
347352
const dropStatement = `
348353
CALL db.indexes() YIELD name, provider WHERE provider = "fulltext-1.0"

0 commit comments

Comments
 (0)