Skip to content

Commit 02124cc

Browse files
committed
Remove graphql-amqp-subscriptions-engine
1 parent a599b7b commit 02124cc

28 files changed

+3
-1616
lines changed

.github/workflows/reusable-subscriptions-plugin-amqp-e2e-test.yml

-70
This file was deleted.

.github/workflows/reusable-unit-tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
package:
1717
- graphql
1818
- introspector
19-
- graphql-amqp-subscriptions-engine
2019

2120
runs-on: ubuntu-latest
2221

examples/subscriptions/apollo_rabbitmq/server.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,11 @@ const { useServer } = require("graphql-ws/lib/use/ws");
2727
const express = require("express");
2828
const { ApolloServer } = require("apollo-server-express");
2929
const { ApolloServerPluginDrainHttpServer } = require("apollo-server-core");
30-
const { Neo4jGraphQLAMQPSubscriptionsEngine } = require("@neo4j/graphql-amqp-subscriptions-engine");
3130

3231
const NEO4J_URL = "bolt://localhost:7687";
3332
const NEO4J_USER = "neo4j";
3433
const NEO4J_PASSWORD = "password";
3534

36-
const AMQP_URI = "amqp://localhost";
37-
38-
const subscriptionsEngine = new Neo4jGraphQLAMQPSubscriptionsEngine({
39-
connection: AMQP_URI,
40-
});
41-
4235
//Alternatively, we can remove the AMQP server if we are only using a development server
4336
// const subscriptionsEngine = new Neo4jGrapghQLSubscriptionsSingleInstancePlugin();
4437

@@ -53,7 +46,7 @@ const neoSchema = new Neo4jGraphQL({
5346
typeDefs: typeDefs,
5447
driver,
5548
features: {
56-
subscriptions: subscriptionsEngine,
49+
subscriptions: true,
5750
},
5851
});
5952

jest.config.base.js

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ module.exports = {
1717
moduleNameMapper: {
1818
"@neo4j/graphql/dist/types": "<rootDir>/packages/graphql/src/types",
1919
"@neo4j/introspector(.*)$": "<rootDir>/packages/introspector/src/$1",
20-
"@neo4j/graphql-amqp-subscriptions-engine(.*)$": "<rootDir>/packages/graphql-amqp-subscriptions-engine/src/$1",
2120
"@neo4j/graphql(.*)$": "<rootDir>/packages/graphql/src/$1",
2221
},
2322
snapshotFormat: {

jest.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ const baseConfig = require("./jest.config.base");
22

33
module.exports = {
44
...baseConfig,
5-
projects: [
6-
"<rootDir>/packages/graphql/jest.config.js",
7-
"<rootDir>/packages/introspector/jest.config.js",
8-
"<rootDir>/packages/graphql-amqp-subscriptions-engine/jest.config.js",
9-
],
5+
projects: ["<rootDir>/packages/graphql/jest.config.js", "<rootDir>/packages/introspector/jest.config.js"],
106
coverageDirectory: "<rootDir>/coverage/",
117
collectCoverageFrom: ["<rootDir>/packages/*/src/**/*.{ts,tsx}"],
128
};

packages/graphql-amqp-subscriptions-engine/CHANGELOG.md

-53
This file was deleted.

0 commit comments

Comments
 (0)