diff --git a/package.json b/package.json index 5b89a8b6..ad493d46 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cognite/neo4j-graphql-js", - "version": "2.19.1", + "version": "2.19.2", "description": "A GraphQL to Cypher query execution layer for Neo4j. ", "main": "./dist/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index 099fae19..759df65d 100644 --- a/src/index.js +++ b/src/index.js @@ -341,8 +341,13 @@ export const assertSchema = ({ }); }; -export const searchSchema = async ({ driver, schema, debug = false }) => { - const session = driver.session(); +export const searchSchema = async ({ + driver, + schema, + debug = false, + sessionParams = {} +}) => { + const session = driver.session(sessionParams); // drop all search indexes, given they cannot be updated via a second CALL to createNodeIndex const dropStatement = ` CALL db.indexes() YIELD name, provider WHERE provider = "fulltext-1.0"