
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
apollo-subscriptions-server
Advanced tools
This example application runs GraphQL subscriptions over a Neo4j database using the GraphQL Library for Neo4j on a [Apollo](https://www.apollographql.com/) server and [RabbitMQ](https://www.rabbitmq.com/) queue to provide production-ready scalability.
This example application runs GraphQL subscriptions over a Neo4j database using the GraphQL Library for Neo4j on a Apollo server and RabbitMQ queue to provide production-ready scalability.
To run this demo:
npm installNEO4J_URL, NEO4J_USER and NEO4J_PASSWORD in server.js are set to you Neo4j database.AMQP_URI is set to a running RabbitMQ server (or any AMQP "0-9-1" server).
npm startlocalhost:4000/graphqlSome example queries can be found at examples.graphql
For testing purposes, RabbitMQ can be run with the provided docker-compose.yml file by executing:
docker-compose up rabbitmq
Note that you need both Docker and Docker-compose installed to run it this way.
If you are building a local dev server, you can run this demo without RabbitMQ, by using a local event system. To do this replacing the plugin setup in server.js from:
const plugin = new Neo4jGraphQLSubscriptionsAMQPPlugin({
connection: AMQP_URI,
});
To
const plugin = new new Neo4jGraphQLSubscriptionsSingleInstancePlugin()();
And update the neo4j/graphql import to:
const { Neo4jGraphQL, Neo4jGraphQLSubscriptionsSingleInstancePlugin } = require("@neo4j/graphql");
FAQs
This example application runs GraphQL subscriptions over a Neo4j database using the GraphQL Library for Neo4j on a [Apollo](https://www.apollographql.com/) server and [RabbitMQ](https://www.rabbitmq.com/) queue to provide production-ready scalability.
The npm package apollo-subscriptions-server receives a total of 0 weekly downloads. As such, apollo-subscriptions-server popularity was classified as not popular.
We found that apollo-subscriptions-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.