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

Commit

Permalink
Enable session config in searchSchema (#2)
Browse files Browse the repository at this point in the history
* enable session config in searchSchema
* Bump patch version
  • Loading branch information
aurlien authored and BugGambit committed Feb 4, 2021
1 parent 51b9d51 commit bc20f38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
9 changes: 7 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bc20f38

Please sign in to comment.