{"library":"apollo-datasource-mongodb","type":"library","category":null,"description":"Apollo data source for MongoDB that integrates with Apollo Server. Version 0.6.0 supports Apollo Server 4.x; versions ≤0.5.4 support Apollo Server 3.x. Uses DataLoader for batching and per-request memoization caching, with optional shared application-level caching via Apollo cache backends. Provides methods: findOneById, findManyByIds, findByFields, and cache deletion helpers. Ships TypeScript types. Compatible with native MongoDB driver and Mongoose models.","language":"javascript","status":"active","version":"0.6.0","tags":["javascript","apollo","datasource","data source","mongodb","mongo","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install apollo-datasource-mongodb","imports":["import { MongoDataSource } from 'apollo-datasource-mongodb'","class Users extends MongoDataSource { constructor(options) { super(options); } }","this.findOneById(id, { ttl: 60 })"]},{"cmd":"yarn add apollo-datasource-mongodb","imports":[]},{"cmd":"pnpm add apollo-datasource-mongodb","imports":[]}],"homepage":"https://github.com/GraphQLGuide/apollo-datasource-mongodb","github":"https://github.com/GraphQLGuide/apollo-datasource-mongodb","docs":null,"changelog":null,"pypi":null,"npm":"apollo-datasource-mongodb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}