{"id":42898,"library":"jollof-data-mongodb","title":"Jollof Data MongoDB","description":"JollofJS data adapter for MongoDB, version 1.6.4. Provides MongoDB integration for the JollofJS framework with minimal configuration. The adapter wraps the MongoDB Node.js driver and offers a simple API for CRUD operations. It is designed for use within JollofJS applications and requires the jollof-data package. Release cadence is low, primarily maintenance updates.","status":"active","version":"1.6.4","language":"javascript","source_language":"en","source_url":"https://github.com/iyobo/jollof-data-mongodb","tags":["javascript","jollof","data","adapter","mongodb"],"install":[{"cmd":"npm install jollof-data-mongodb","lang":"bash","label":"npm"},{"cmd":"yarn add jollof-data-mongodb","lang":"bash","label":"yarn"},{"cmd":"pnpm add jollof-data-mongodb","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency; this adapter extends the data layer of JollofJS.","package":"jollof-data","optional":false}],"imports":[{"note":"Package is ESM-only.","wrong":"const MongoAdapter = require('jollof-data-mongodb')","symbol":"MongoAdapter","correct":"import { MongoAdapter } from 'jollof-data-mongodb'"},{"note":"Default export is the MongoAdapter class.","wrong":"","symbol":"jollof-data-mongodb (default import)","correct":"import JollofDataMongo from 'jollof-data-mongodb'"}],"quickstart":{"code":"import { MongoAdapter } from 'jollof-data-mongodb';\n\nconst adapter = new MongoAdapter({ url: process.env.MONGO_URL ?? 'mongodb://localhost:27017', dbName: 'mydb' });\n\nasync function run() {\n  const users = adapter.collection('users');\n  await users.insertOne({ name: 'Alice', age: 30 });\n  const result = await users.findOne({ name: 'Alice' });\n  console.log(result);\n}\n\nrun().catch(console.error);","lang":"typescript","description":"Connects to MongoDB using MongoAdapter, inserts and queries a document."},"warnings":[{"fix":"Update instantiation to new MongoAdapter({ url, dbName }).","message":"Breaking change in v1.5.0: Adapter constructor now requires an options object instead of individual arguments.","severity":"breaking","affected_versions":"<1.5.0"},{"fix":"Migrate callbacks to async/await or .then().","message":"Breaking change in v1.0.0: Switched from Callback to Promise-based API.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Ensure jollof-data is listed as a dependency and initialized before using this adapter.","message":"Requires jollof-data package to be installed and configured in the project.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.6.4':10 'adapt':6,22,61 'api':32 'applic':43 'cadenc':52 'configur':20 'crud':34 'data':2,5,49,60 'design':38 'driver':27 'framework':17 'integr':13 'javascript':58 'jollof':1,48,59 'jollof-data':47 'jollofj':4,16,42 'low':54 'mainten':56 'minim':19 'mongodb':3,8,12,25,62 'node.js':26 'offer':29 'oper':35 'packag':50 'primarili':55 'provid':11 'releas':51 'requir':45 'simpl':31 'updat':57 'use':40 'version':9 'within':41 'wrap':23","created_at":"2026-06-05T16:57:12.015693+00:00","updated_at":"2026-06-05T16:57:12.015693+00:00","problems":[{"fix":"Install jollof-data: npm install jollof-data","cause":"Missing peer dependency jollof-data.","error":"Cannot find module 'jollof-data'"},{"fix":"Use import JollofDataMongo from 'jollof-data-mongodb' or named import { MongoAdapter }.","cause":"Default import used instead of named import.","error":"MongoAdapter is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/iyobo/jollof-data-mongodb#readme","github":"https://github.com/iyobo/jollof-data-mongodb","docs":null,"changelog":null,"pypi":null,"npm":"jollof-data-mongodb","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}