neo-forgery
Advanced tools
Comparing version 1.9.1 to 1.10.0
@@ -10,4 +10,11 @@ "use strict"; | ||
returned.summary = Object.assign({}, storedResponse.summary); | ||
if (!returned.hasOwnProperty('summary')) { | ||
returned.summary = {}; | ||
} | ||
if (!returned.summary.hasOwnProperty('counters')) { | ||
returned.summary.counters = {}; | ||
} | ||
returned.summary.counters.updates = () => null; | ||
return returned; | ||
} | ||
exports.storedToLive = storedToLive; |
@@ -46,7 +46,5 @@ "use strict"; | ||
if (queryMatched) { | ||
console.log(errorMessageMatchedQuery); | ||
throw new Error(errorMessageMatchedQuery); | ||
} | ||
const errorMessageNoMatchedQuery = errorMessageContentsQueryNotMatched(params, query); | ||
console.log(errorMessageNoMatchedQuery); | ||
throw new Error(errorMessageNoMatchedQuery); | ||
@@ -53,0 +51,0 @@ }; |
@@ -13,6 +13,4 @@ "use strict"; | ||
let returnValue = []; | ||
// console.log(`running '${query}', params '${params}'`) | ||
try { | ||
await session.run(query, params).then((result) => { | ||
// console.log(`output from '${query}' is ${JSON.stringify(result)}`) | ||
returnValue = result; | ||
@@ -19,0 +17,0 @@ }); |
import { Record } from 'neo4j-driver-core'; | ||
export interface LiveResponse { | ||
records: Record[]; | ||
summary?: object; | ||
summary?: any; | ||
} |
@@ -5,3 +5,3 @@ { | ||
"author": "YizYah", | ||
"version": "1.9.1", | ||
"version": "1.10.0", | ||
"bugs": "https://github.com/YizYah/neo-forgery/issues", | ||
@@ -28,3 +28,3 @@ "engines": { | ||
"scripts": { | ||
"build your own ": "tsc", | ||
"build": "tsc", | ||
"commit": "git-cz", | ||
@@ -46,3 +46,3 @@ "int": "ava --config int-tests.config.cjs", | ||
"is-subset": "^0.1.1", | ||
"neo4j-driver": "^4.3.1", | ||
"neo4j-driver": "^4.3.3", | ||
"neo4j-driver-core": "^4.3.1", | ||
@@ -54,3 +54,3 @@ "path": "^0.12.7", | ||
"devDependencies": { | ||
"@neo4j/graphql": "^1.1.0", | ||
"@neo4j/graphql": "^2.2.0", | ||
"@typescript-eslint/eslint-plugin": "^4.21.0", | ||
@@ -57,0 +57,0 @@ "@typescript-eslint/parser": "^4.21.0", |
@@ -147,3 +147,3 @@ | ||
1. **stored** a json representing a response. Looks identical to a console.log of an actual response. | ||
2. **live** the object returned from an actual query, including instances of the `Record` class. Also represents integers as instances of the `Integer` class. | ||
2. **live** the object returned from an actual query, including instances of the `Record` class. Also represents integers as instances of the `Integer` class. One further difference, added for compatibility with @neo4j/graphql 2, is that a placeholder method `summary.counters.updates() is added to a live results object. | ||
3. **data** simple objects, like what GraphQl Returns. Roughly what you see in the neo4j data browser results when you select the `TABLE` view. | ||
@@ -150,0 +150,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47830
609
Updatedneo4j-driver@^4.3.3