@graphql-mesh/transport-neo4j 0.10.5 → 0.10.6-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0
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/cjs/executor.js +4 -2
- package/esm/executor.js +4 -2
- package/package.json +3 -3
- package/typings/executor.d.cts +4 -4
- package/typings/executor.d.ts +4 -4
package/cjs/executor.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.getNeo4JExecutor = getNeo4JExecutor;
|
|
|
4
4
|
exports.getExecutableSchemaFromTypeDefsAndDriver = getExecutableSchemaFromTypeDefsAndDriver;
|
|
5
5
|
const graphql_1 = require("graphql");
|
|
6
6
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
7
|
+
const types_1 = require("@graphql-mesh/types");
|
|
7
8
|
const utils_1 = require("@graphql-mesh/utils");
|
|
8
9
|
const delegate_1 = require("@graphql-tools/delegate");
|
|
9
10
|
const utils_2 = require("@graphql-tools/utils");
|
|
@@ -83,9 +84,10 @@ async function getNeo4JExecutor(opts) {
|
|
|
83
84
|
});
|
|
84
85
|
}, () => driver.close());
|
|
85
86
|
}
|
|
86
|
-
function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub, typeDefs, }) {
|
|
87
|
+
function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub: meshOrHivePubSub, typeDefs, }) {
|
|
87
88
|
let features;
|
|
88
|
-
if (
|
|
89
|
+
if (meshOrHivePubSub) {
|
|
90
|
+
const pubsub = (0, types_1.toMeshPubSub)(meshOrHivePubSub);
|
|
89
91
|
features = {
|
|
90
92
|
subscriptions: {
|
|
91
93
|
events: (0, eventEmitterForPubSub_js_1.getEventEmitterFromPubSub)(pubsub),
|
package/esm/executor.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { extendSchema, parse, visit } from 'graphql';
|
|
2
2
|
import { GraphQLBigInt } from 'graphql-scalars';
|
|
3
|
+
import { toMeshPubSub } from '@graphql-mesh/types';
|
|
3
4
|
import { makeAsyncDisposable } from '@graphql-mesh/utils';
|
|
4
5
|
import { createDefaultExecutor } from '@graphql-tools/delegate';
|
|
5
6
|
import { asArray, getDirectiveExtensions, getDocumentNodeFromSchema, } from '@graphql-tools/utils';
|
|
@@ -79,9 +80,10 @@ export async function getNeo4JExecutor(opts) {
|
|
|
79
80
|
});
|
|
80
81
|
}, () => driver.close());
|
|
81
82
|
}
|
|
82
|
-
export function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub, typeDefs, }) {
|
|
83
|
+
export function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub: meshOrHivePubSub, typeDefs, }) {
|
|
83
84
|
let features;
|
|
84
|
-
if (
|
|
85
|
+
if (meshOrHivePubSub) {
|
|
86
|
+
const pubsub = toMeshPubSub(meshOrHivePubSub);
|
|
85
87
|
features = {
|
|
86
88
|
subscriptions: {
|
|
87
89
|
events: getEventEmitterFromPubSub(pubsub),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/transport-neo4j",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
10
10
|
"@graphql-mesh/transport-common": "^0.7.13",
|
|
11
|
-
"@graphql-mesh/types": "
|
|
12
|
-
"@graphql-mesh/utils": "
|
|
11
|
+
"@graphql-mesh/types": "0.104.8-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0",
|
|
12
|
+
"@graphql-mesh/utils": "0.104.8-alpha-20250820154906-c854a2b54847db114256951ae911aaf49b5e67a0",
|
|
13
13
|
"@graphql-tools/delegate": "^10.0.28",
|
|
14
14
|
"@graphql-tools/utils": "^10.8.0",
|
|
15
15
|
"@neo4j/graphql": "^7.0.0",
|
package/typings/executor.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { DocumentNode, GraphQLSchema } from 'graphql';
|
|
2
2
|
import type { Driver } from 'neo4j-driver';
|
|
3
3
|
import type { DisposableExecutor } from '@graphql-mesh/transport-common';
|
|
4
|
-
import type
|
|
4
|
+
import { type HivePubSub, type Logger, type MeshPubSub } from '@graphql-mesh/types';
|
|
5
5
|
export interface Neo4JExecutorOpts {
|
|
6
6
|
schema: GraphQLSchema;
|
|
7
7
|
driver?: Driver;
|
|
8
|
-
pubsub?: MeshPubSub;
|
|
8
|
+
pubsub?: MeshPubSub | HivePubSub;
|
|
9
9
|
logger?: Logger;
|
|
10
10
|
}
|
|
11
11
|
export declare function getNeo4JExecutor(opts: Neo4JExecutorOpts): Promise<DisposableExecutor>;
|
|
12
12
|
interface GetExecutableSchemaFromTypeDefs {
|
|
13
13
|
driver: Driver;
|
|
14
|
-
pubsub?: MeshPubSub;
|
|
14
|
+
pubsub?: MeshPubSub | HivePubSub;
|
|
15
15
|
typeDefs?: string | DocumentNode;
|
|
16
16
|
}
|
|
17
|
-
export declare function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub, typeDefs, }: GetExecutableSchemaFromTypeDefs): Promise<GraphQLSchema>;
|
|
17
|
+
export declare function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub: meshOrHivePubSub, typeDefs, }: GetExecutableSchemaFromTypeDefs): Promise<GraphQLSchema>;
|
|
18
18
|
export {};
|
package/typings/executor.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { DocumentNode, GraphQLSchema } from 'graphql';
|
|
2
2
|
import type { Driver } from 'neo4j-driver';
|
|
3
3
|
import type { DisposableExecutor } from '@graphql-mesh/transport-common';
|
|
4
|
-
import type
|
|
4
|
+
import { type HivePubSub, type Logger, type MeshPubSub } from '@graphql-mesh/types';
|
|
5
5
|
export interface Neo4JExecutorOpts {
|
|
6
6
|
schema: GraphQLSchema;
|
|
7
7
|
driver?: Driver;
|
|
8
|
-
pubsub?: MeshPubSub;
|
|
8
|
+
pubsub?: MeshPubSub | HivePubSub;
|
|
9
9
|
logger?: Logger;
|
|
10
10
|
}
|
|
11
11
|
export declare function getNeo4JExecutor(opts: Neo4JExecutorOpts): Promise<DisposableExecutor>;
|
|
12
12
|
interface GetExecutableSchemaFromTypeDefs {
|
|
13
13
|
driver: Driver;
|
|
14
|
-
pubsub?: MeshPubSub;
|
|
14
|
+
pubsub?: MeshPubSub | HivePubSub;
|
|
15
15
|
typeDefs?: string | DocumentNode;
|
|
16
16
|
}
|
|
17
|
-
export declare function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub, typeDefs, }: GetExecutableSchemaFromTypeDefs): Promise<GraphQLSchema>;
|
|
17
|
+
export declare function getExecutableSchemaFromTypeDefsAndDriver({ driver, pubsub: meshOrHivePubSub, typeDefs, }: GetExecutableSchemaFromTypeDefs): Promise<GraphQLSchema>;
|
|
18
18
|
export {};
|