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

Commit 8cbe267

Browse files
authored
Enable session config in searchSchema (#2)
* enable session config in searchSchema * Bump patch version
1 parent 5d1835b commit 8cbe267

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cognite/neo4j-graphql-js",
3-
"version": "2.19.1",
3+
"version": "2.19.2",
44
"description": "A GraphQL to Cypher query execution layer for Neo4j. ",
55
"main": "./dist/index.js",
66
"scripts": {

src/index.js

+7-2
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)