Skip to content

Commit

Permalink
docs: add types link
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Jul 9, 2023
1 parent 925d382 commit 9c0e0ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/content/2.api/1.utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ This function creates a new Mongoose model with schema. Example usage:
| **Key** | **Type** | **Require** | **Description** |
| ---------------------------- | ----------- | ----------- | ----- |
| `name` | `string` | true | Name of Model |
| `schema` | `SchemaDefinition` | true | Schema Definition of Model |
| `options` | `SchemaOptions` | false | Schema Options for Model |
| `hooks` | `(schema: Schema<T>) => void` | false | Schema Hooks Function to customize Model |
| `schema` | [`SchemaDefinition`](https://mongoosejs.com/docs/schematypes.html) | true | Schema Definition of Model |
| `options` | [`SchemaOptions`](https://mongoosejs.com/docs/guide.html#options) | false | Schema Options for Model |
| `hooks` | [`(schema: Schema<T>) => void`](https://mongoosejs.com/docs/middleware.html) | false | Schema Hooks Function to customize Model |



Expand All @@ -66,4 +66,4 @@ Example usage:
import { defineMongooseConnection } from '#nuxt/mongoose'

export const connection = defineMongooseConnection('mongodb://127.0.0.1/nuxt-mongoose')
```
```

0 comments on commit 9c0e0ba

Please sign in to comment.