From e7c7beb8fd9ddf49a644e58b193b48570eeb8902 Mon Sep 17 00:00:00 2001 From: Arash <38922203+arashsheyda@users.noreply.github.com> Date: Tue, 3 Oct 2023 03:46:23 +0300 Subject: [PATCH] docs: default connection close #24 --- docs/content/2.api/1.utils.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/content/2.api/1.utils.md b/docs/content/2.api/1.utils.md index c7dad69..0ae47dd 100644 --- a/docs/content/2.api/1.utils.md +++ b/docs/content/2.api/1.utils.md @@ -54,7 +54,12 @@ This function creates a new Mongoose model with schema. Example usage: | `hooks` | [`(schema: Schema) => void`](https://mongoosejs.com/docs/middleware.html) | false | Schema Hooks Function to customize Model | - +::alert +you can access the default connection with importing it from mongoose: +:: +``` +import { connection } from 'mongoose' +``` ## `defineMongooseConnection` This function creates a new Mongoose connection.