{"library":"graphql-mongodb-subscriptions","type":"library","category":null,"description":"A PubSub engine for graphql-subscriptions that uses MongoDB's capped collections and tailable cursors to broadcast subscription events across multiple server instances. Current stable version is 1.0.1, with peer dependencies on graphql-subscriptions (^1.0.0 || ^2.0.0) and mongodb (^5.3.0). It implements the PubSubEngine and AsyncIterator interfaces to integrate seamlessly with Apollo GraphQL subscriptions. Key differentiators: leverages MongoDB’s native pub/sub-like capped collection feature for persistence and scalability without additional message brokers. Suitable for stacks already using MongoDB.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","graphql","mongodb","apollo","subscriptions","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install graphql-mongodb-subscriptions","imports":["import { MongodbPubSub } from 'graphql-mongodb-subscriptions';","import { PubSubMongoDbOptions } from 'graphql-mongodb-subscriptions';","import { withFilter } from 'graphql-subscriptions';"]},{"cmd":"yarn add graphql-mongodb-subscriptions","imports":[]},{"cmd":"pnpm add graphql-mongodb-subscriptions","imports":[]}],"homepage":"https://github.com/mjwheatley/graphql-mongodb-subscriptions.git","github":"https://github.com/mjwheatley/graphql-mongodb-subscriptions","docs":null,"changelog":null,"pypi":null,"npm":"graphql-mongodb-subscriptions","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}