From 093995aba4337791dd8bfa0937c5a2911b217389 Mon Sep 17 00:00:00 2001 From: Kristian Aurlien Date: Wed, 20 Jan 2021 12:55:55 +0100 Subject: [PATCH 1/2] enable session config in searchSchema --- src/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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" From ba0a20af29d64cbfe09c55ccae0d7bc3b554433e Mon Sep 17 00:00:00 2001 From: Kristian Aurlien Date: Wed, 20 Jan 2021 13:21:08 +0100 Subject: [PATCH 2/2] Bump patch version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d466bd0e..f8ef190a 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": {