[{"data":1,"prerenderedAt":375},["ShallowReactive",2],{"catalog-module-mongodb":3},{"id":4,"category":5,"description":7,"documentation":8,"extension":9,"github":8,"icon":10,"interface":11,"meta":14,"name":13,"npm":15,"official":16,"repo":17,"sponsor":18,"stem":19,"__hash__":20,"stars":21,"downloads":22,"readme":23},"modules\u002Fcontent\u002Fmodules\u002Fmongodb.yml",[6],"Database","MongoDB client module implementing the Database interface","https:\u002F\u002Fgithub.com\u002FAntelopeJS\u002Fmongodb","yml","\u002Ficons\u002Fantelope.svg",[12,13],"database","mongodb",{},"@antelopejs\u002Fmongodb",true,"antelopejs\u002Fmongodb",false,"content\u002Fmodules\u002Fmongodb","WSNmjwCbUUBTe8S7_TfGrZ7VTobk-uc8_0Q-AAXxmno",5,469,{"data":24,"body":26,"toc":361},{"title":25,"description":25},"",{"type":27,"children":28},"root",[29,40,47,89,94,101,111,117,122,148,153,232,238,243,256,262,267,275,282,287,343,348],{"type":30,"tag":31,"props":32,"children":33},"element","p",{},[34],{"type":30,"tag":35,"props":36,"children":39},"img",{"alt":37,"src":38},"MongoDB","https:\u002F\u002Fraw.githubusercontent.com\u002Fantelopejs\u002Fmongodb\u002Fmain\u002F.github\u002Fsocial-card.png",[],{"type":30,"tag":41,"props":42,"children":44},"h2",{"id":43},"antelopejsmongodb",[45],{"type":46,"value":15},"text",{"type":30,"tag":48,"props":49,"children":51},"div",{"align":50},"center",[52,62,71,80],{"type":30,"tag":53,"props":54,"children":56},"a",{"href":55},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@antelopejs\u002Fmongodb",[57],{"type":30,"tag":35,"props":58,"children":61},{"alt":59,"src":60},"NPM version","https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@antelopejs\u002Fmongodb.svg?style=for-the-badge&labelColor=000000",[],{"type":30,"tag":53,"props":63,"children":65},{"href":64},".\u002FLICENSE",[66],{"type":30,"tag":35,"props":67,"children":70},{"alt":68,"src":69},"License","https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002F@antelopejs\u002Fmongodb.svg?style=for-the-badge&labelColor=000000",[],{"type":30,"tag":53,"props":72,"children":74},{"href":73},"https:\u002F\u002Fdiscord.gg\u002FsjK28QHrA7",[75],{"type":30,"tag":35,"props":76,"children":79},{"src":77,"alt":78},"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-18181B?logo=discord&style=for-the-badge&color=000000","Discord",[],{"type":30,"tag":53,"props":81,"children":83},{"href":82},"https:\u002F\u002Fantelopejs.com\u002Fmodules\u002Fmongodb",[84],{"type":30,"tag":35,"props":85,"children":88},{"src":86,"alt":87},"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDocs-18181B?style=for-the-badge&color=000000","Documentation",[],{"type":30,"tag":31,"props":90,"children":91},{},[92],{"type":46,"value":93},"A full-featured MongoDB client module that implements both the MongoDB interface and the Database interface for AntelopeJS.",{"type":30,"tag":95,"props":96,"children":98},"h3",{"id":97},"installation",[99],{"type":46,"value":100},"Installation",{"type":30,"tag":102,"props":103,"children":104},"pre",{},[105],{"type":30,"tag":106,"props":107,"children":108},"code",{},[109],{"type":46,"value":110},"ajs project modules add @antelopejs\u002Fmongodb\n",{"type":30,"tag":95,"props":112,"children":114},{"id":113},"interfaces",[115],{"type":46,"value":116},"Interfaces",{"type":30,"tag":31,"props":118,"children":119},{},[120],{"type":46,"value":121},"This module implements two key interfaces:",{"type":30,"tag":123,"props":124,"children":125},"ul",{},[126,138],{"type":30,"tag":127,"props":128,"children":129},"li",{},[130,136],{"type":30,"tag":131,"props":132,"children":133},"strong",{},[134],{"type":46,"value":135},"MongoDB Interface",{"type":46,"value":137},": Provides direct MongoDB operations and connection management",{"type":30,"tag":127,"props":139,"children":140},{},[141,146],{"type":30,"tag":131,"props":142,"children":143},{},[144],{"type":46,"value":145},"Database Interface",{"type":46,"value":147},": Offers a standardized database abstraction layer",{"type":30,"tag":31,"props":149,"children":150},{},[151],{"type":46,"value":152},"Both interfaces can be used independently or together depending on your application's needs. The interfaces are installed separately to maintain modularity and minimize dependencies.",{"type":30,"tag":154,"props":155,"children":156},"table",{},[157,179],{"type":30,"tag":158,"props":159,"children":160},"thead",{},[161],{"type":30,"tag":162,"props":163,"children":164},"tr",{},[165,171,176],{"type":30,"tag":166,"props":167,"children":168},"th",{},[169],{"type":46,"value":170},"Name",{"type":30,"tag":166,"props":172,"children":173},{},[174],{"type":46,"value":175},"Install command",{"type":30,"tag":166,"props":177,"children":178},{},[],{"type":30,"tag":180,"props":181,"children":182},"tbody",{},[183,208],{"type":30,"tag":162,"props":184,"children":185},{},[186,191,200],{"type":30,"tag":187,"props":188,"children":189},"td",{},[190],{"type":46,"value":37},{"type":30,"tag":187,"props":192,"children":193},{},[194],{"type":30,"tag":106,"props":195,"children":197},{"className":196},[],[198],{"type":46,"value":199},"ajs module imports add mongodb",{"type":30,"tag":187,"props":201,"children":202},{},[203],{"type":30,"tag":53,"props":204,"children":206},{"href":205},"https:\u002F\u002Fgithub.com\u002FAntelopeJS\u002Finterface-mongodb",[207],{"type":46,"value":87},{"type":30,"tag":162,"props":209,"children":210},{},[211,215,224],{"type":30,"tag":187,"props":212,"children":213},{},[214],{"type":46,"value":6},{"type":30,"tag":187,"props":216,"children":217},{},[218],{"type":30,"tag":106,"props":219,"children":221},{"className":220},[],[222],{"type":46,"value":223},"ajs module imports add database",{"type":30,"tag":187,"props":225,"children":226},{},[227],{"type":30,"tag":53,"props":228,"children":230},{"href":229},"https:\u002F\u002Fgithub.com\u002FAntelopeJS\u002Finterface-database",[231],{"type":46,"value":87},{"type":30,"tag":95,"props":233,"children":235},{"id":234},"overview",[236],{"type":46,"value":237},"Overview",{"type":30,"tag":31,"props":239,"children":240},{},[241],{"type":46,"value":242},"The AntelopeJS MongoDB module provides functionality for interacting with MongoDB:",{"type":30,"tag":123,"props":244,"children":245},{},[246,251],{"type":30,"tag":127,"props":247,"children":248},{},[249],{"type":46,"value":250},"MongoDB client connection management through the MongoDB interface",{"type":30,"tag":127,"props":252,"children":253},{},[254],{"type":46,"value":255},"Common database operations through the Database interface",{"type":30,"tag":95,"props":257,"children":259},{"id":258},"configuration",[260],{"type":46,"value":261},"Configuration",{"type":30,"tag":31,"props":263,"children":264},{},[265],{"type":46,"value":266},"The MongoDB module supports connection using the native MongoDB driver with the following options:",{"type":30,"tag":102,"props":268,"children":269},{},[270],{"type":30,"tag":106,"props":271,"children":272},{},[273],{"type":46,"value":274},"\u002F\u002F MongoDB connection options\n{\n    url: \"mongodb:\u002F\u002Flocalhost:27017\",     \u002F\u002F The MongoDB connection string\n    id_provider: \"uuid\",                  \u002F\u002F ID generation strategy: \"uuid\" (default) or \"objectid\"\n    options: {                            \u002F\u002F Optional MongoDB client options\n        useNewUrlParser: true,\n        useUnifiedTopology: true,\n        maxPoolSize: 10,                  \u002F\u002F Maximum number of connections in the pool\n        connectTimeoutMS: 30000,          \u002F\u002F Connection timeout in milliseconds\n        socketTimeoutMS: 30000            \u002F\u002F Socket timeout in milliseconds\n    }\n}\n",{"type":30,"tag":276,"props":277,"children":279},"h4",{"id":278},"configuration-details",[280],{"type":46,"value":281},"Configuration Details",{"type":30,"tag":31,"props":283,"children":284},{},[285],{"type":46,"value":286},"The module uses the official MongoDB Node.js driver to establish connections to your MongoDB servers:",{"type":30,"tag":123,"props":288,"children":289},{},[290,303,308,313],{"type":30,"tag":127,"props":291,"children":292},{},[293,295,301],{"type":46,"value":294},"Connection using ",{"type":30,"tag":106,"props":296,"children":298},{"className":297},[],[299],{"type":46,"value":300},"MongoClient.connect()",{"type":46,"value":302}," from the mongodb package",{"type":30,"tag":127,"props":304,"children":305},{},[306],{"type":46,"value":307},"Support for standard MongoDB connection options",{"type":30,"tag":127,"props":309,"children":310},{},[311],{"type":46,"value":312},"Built-in connection pooling through the MongoDB driver",{"type":30,"tag":127,"props":314,"children":315},{},[316,318],{"type":46,"value":317},"ID generation strategies:\n",{"type":30,"tag":123,"props":319,"children":320},{},[321,332],{"type":30,"tag":127,"props":322,"children":323},{},[324,330],{"type":30,"tag":106,"props":325,"children":327},{"className":326},[],[328],{"type":46,"value":329},"uuid",{"type":46,"value":331}," (default): Uses UUID v4 for generating unique identifiers",{"type":30,"tag":127,"props":333,"children":334},{},[335,341],{"type":30,"tag":106,"props":336,"children":338},{"className":337},[],[339],{"type":46,"value":340},"objectid",{"type":46,"value":342},": Uses MongoDB's native ObjectId for document identifiers",{"type":30,"tag":95,"props":344,"children":346},{"id":345},"license",[347],{"type":46,"value":68},{"type":30,"tag":31,"props":349,"children":350},{},[351,353,359],{"type":46,"value":352},"This project is licensed under the Apache License 2.0 - see the ",{"type":30,"tag":53,"props":354,"children":356},{"href":355},"https:\u002F\u002Fraw.githubusercontent.com\u002Fantelopejs\u002Fmongodb\u002Fmain\u002FLICENSE",[357],{"type":46,"value":358},"LICENSE",{"type":46,"value":360}," file for details.",{"title":25,"searchDepth":362,"depth":362,"links":363},3,[364],{"id":43,"depth":365,"text":15,"children":366},2,[367,368,369,370,374],{"id":97,"depth":362,"text":100},{"id":113,"depth":362,"text":116},{"id":234,"depth":362,"text":237},{"id":258,"depth":362,"text":261,"children":371},[372],{"id":278,"depth":373,"text":281},4,{"id":345,"depth":362,"text":68},1786370698368]