fastify-plugin-mongoose:Fastify插件使用mongoose连接到mongodb

时间:2024-05-29 07:04:36
【文件属性】:

文件名称:fastify-plugin-mongoose:Fastify插件使用mongoose连接到mongodb

文件大小:54KB

文件格式:ZIP

更新时间:2024-05-29 07:04:36

JavaScript

固定插件猫鼬 安装 npm install fastify-plugin-mongoose 用法 初始化 const fastify = require ( "fastify" ) ( ) ; const fastifyPluginMongoose = require ( "fastify-plugin-mongoose" ) ; const path = require ( "path" ) ; fastify . register ( fastifyPluginMongoose , { uri : "mongodb://localhost:27017/dbName" , settings : { // https://mongoosejs.com/docs/connections.html#options // these are default useNewUrlPa


【文件预览】:
fastify-plugin-mongoose-main
----.github()
--------workflows()
----.npmignore(99B)
----test()
--------test-models()
--------models.js(2KB)
--------test-models-no-alias()
--------on-the-fly.js(2KB)
--------connection.js(644B)
----LICENSE.md(34KB)
----README.md(3KB)
----.gitignore(360B)
----index.js(4KB)
----package-lock.json(136KB)
----package.json(587B)

网友评论