From ee5cc5d1b91ec0445e4574ef6ceb6e2ecb88f35b Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Tue, 24 Dec 2024 09:27:50 +0300 Subject: [PATCH] docs: fix mongodb adapter example --- docs/content/docs/concepts/database.mdx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/docs/content/docs/concepts/database.mdx b/docs/content/docs/concepts/database.mdx index 464d8ad85f..732e014656 100644 --- a/docs/content/docs/concepts/database.mdx +++ b/docs/content/docs/concepts/database.mdx @@ -160,22 +160,6 @@ export const auth = betterAuth({ }) ``` -#### Use Plural Form - -If your schema uses plural form for table names, you can pass the `usePlural` option to the adapter. - -```ts title="auth.ts" -import { betterAuth } from "better-auth"; -import { MongoClient } from "mongodb"; -import { mongoAdapter } from "better-auth/adapters/mongodb"; - -export const auth = betterAuth({ - database: mongoAdapter(client, { - usePlural: true - }) -}) -``` - ## CLI