@rxdi/neo4j 0.7.155 → 0.7.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/injection.tokens.d.ts +1 -0
- package/dist/neo4j.service.js +3 -2
- package/package.json +69 -69
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ let Neo4JModule = Neo4JModule_1 = class Neo4JModule {
|
|
|
60
60
|
deps: [neo4j_service_1.UtilService, injection_tokens_1.NEO4J_DRIVER],
|
|
61
61
|
useFactory: (util, driver) => (schema) => __awaiter(this, void 0, void 0, function* () { return util.augmentSchema(schema)(driver); })
|
|
62
62
|
}
|
|
63
|
-
])
|
|
63
|
+
]),
|
|
64
64
|
]
|
|
65
65
|
};
|
|
66
66
|
}
|
package/dist/neo4j.service.js
CHANGED
|
@@ -51,15 +51,16 @@ let UtilService = class UtilService {
|
|
|
51
51
|
augmentSchema(schema) {
|
|
52
52
|
return (driver) => __awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
this.validateSchema(schema);
|
|
54
|
+
const typedSchema = yield this.config.schema;
|
|
54
55
|
const typeDefs = this.generateTypeDefs(schema);
|
|
55
|
-
yield this.initOgmClient(typeDefs)(driver);
|
|
56
56
|
const neoSchema = new graphql_1.Neo4jGraphQL({
|
|
57
|
-
typeDefs
|
|
57
|
+
typeDefs: `${typeDefs} ${typedSchema !== null && typedSchema !== void 0 ? typedSchema : ''}`,
|
|
58
58
|
driver,
|
|
59
59
|
assumeValidSDL: true,
|
|
60
60
|
});
|
|
61
61
|
const augmentedSchema = yield neoSchema.getSchema();
|
|
62
62
|
const newSchema = this.extendSchemaDirectives(augmentedSchema, schema);
|
|
63
|
+
yield this.initOgmClient(typeDefs)(driver);
|
|
63
64
|
return newSchema;
|
|
64
65
|
});
|
|
65
66
|
}
|
package/package.json
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}'",
|
|
14
|
-
"pretest": "npm run lint",
|
|
15
|
-
"test": "echo Test Neo4J",
|
|
16
|
-
"build": "tsc || true"
|
|
17
|
-
},
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://github.com/rxdi/neo4j"
|
|
21
|
-
},
|
|
22
|
-
"author": "Kristiyan Tachev (@Stradivario)",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://github.com/rxdi/neo4j/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/rxdi/neo4j/blob/master/README.md",
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@neo4j/graphql": "^3.9.0",
|
|
30
|
-
"@neo4j/graphql-ogm": "^3.9.0",
|
|
31
|
-
"neo4j-driver": "^5.0.1"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"graphql": "^14.5.8",
|
|
35
|
-
"@types/graphql": "^14.5.0",
|
|
36
|
-
"graphql-tools": "^5.0.0",
|
|
37
|
-
"@rxdi/core": "^0.7.153",
|
|
38
|
-
"@rxdi/graphql": "^0.7.153",
|
|
39
|
-
"@types/hapi": "^18.0.4",
|
|
40
|
-
"@types/jest": "^24.0.22",
|
|
41
|
-
"@types/node": "^12.0.10",
|
|
42
|
-
"jest": "^24.8.0",
|
|
43
|
-
"jest-cli": "^24.8.1",
|
|
44
|
-
"ts-jest": "^24.0.2",
|
|
45
|
-
"tslint": "^5.20.1",
|
|
46
|
-
"tslint-language-service": "^0.9.9",
|
|
47
|
-
"typescript": "^4.3.5"
|
|
48
|
-
},
|
|
49
|
-
"jest": {
|
|
50
|
-
"testEnvironment": "node",
|
|
51
|
-
"testPathIgnorePatterns": [
|
|
52
|
-
"/node_modules/"
|
|
2
|
+
"name": "@rxdi/neo4j",
|
|
3
|
+
"version": "0.7.157",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"typings": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
53
11
|
],
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
12
|
+
"scripts": {
|
|
13
|
+
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}'",
|
|
14
|
+
"pretest": "npm run lint",
|
|
15
|
+
"test": "echo Test Neo4J",
|
|
16
|
+
"build": "tsc || true"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/rxdi/neo4j"
|
|
21
|
+
},
|
|
22
|
+
"author": "Kristiyan Tachev (@Stradivario)",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/rxdi/neo4j/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/rxdi/neo4j/blob/master/README.md",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@neo4j/graphql": "^3.9.0",
|
|
30
|
+
"@neo4j/graphql-ogm": "^3.9.0",
|
|
31
|
+
"neo4j-driver": "^5.0.1"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"graphql": "^14.5.8",
|
|
35
|
+
"@types/graphql": "^14.5.0",
|
|
36
|
+
"graphql-tools": "^5.0.0",
|
|
37
|
+
"@rxdi/core": "^0.7.156",
|
|
38
|
+
"@rxdi/graphql": "^0.7.156",
|
|
39
|
+
"@types/hapi": "^18.0.4",
|
|
40
|
+
"@types/jest": "^24.0.22",
|
|
41
|
+
"@types/node": "^12.0.10",
|
|
42
|
+
"jest": "^24.8.0",
|
|
43
|
+
"jest-cli": "^24.8.1",
|
|
44
|
+
"ts-jest": "^24.0.2",
|
|
45
|
+
"tslint": "^5.20.1",
|
|
46
|
+
"tslint-language-service": "^0.9.9",
|
|
47
|
+
"typescript": "^4.3.5"
|
|
68
48
|
},
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
"jest": {
|
|
50
|
+
"testEnvironment": "node",
|
|
51
|
+
"testPathIgnorePatterns": [
|
|
52
|
+
"/node_modules/"
|
|
53
|
+
],
|
|
54
|
+
"coverageReporters": [
|
|
55
|
+
"lcov",
|
|
56
|
+
"html"
|
|
57
|
+
],
|
|
58
|
+
"rootDir": "./",
|
|
59
|
+
"moduleFileExtensions": [
|
|
60
|
+
"ts",
|
|
61
|
+
"tsx",
|
|
62
|
+
"js",
|
|
63
|
+
"json",
|
|
64
|
+
"node"
|
|
65
|
+
],
|
|
66
|
+
"transform": {
|
|
67
|
+
"\\.(ts|tsx)$": "ts-jest"
|
|
68
|
+
},
|
|
69
|
+
"testRegex": "/src/.*\\.spec.(ts|tsx|js)$",
|
|
70
|
+
"verbose": true,
|
|
71
|
+
"collectCoverage": true
|
|
72
|
+
}
|
|
73
73
|
}
|