Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

code typo fix in seeding-your-database.mdx (#23838)

Mahdi Taleghanie676a18b6cd1
diff --git a/apps/docs/content/guides/cli/seeding-your-database.mdx b/apps/docs/content/guides/cli/seeding-your-database.mdx
index d6a0e6f0938..818c59c1efc 100644
--- a/apps/docs/content/guides/cli/seeding-your-database.mdx
+++ b/apps/docs/content/guides/cli/seeding-your-database.mdx
@@ -71,18 +71,20 @@ You can use the Snaplet configuration file `seed.mts` to define the values you w
import { createSeedClient } from '@snaplet/seed'
import { copycat } from '@snaplet/copycat'
-const seed = await createSeedClient();
-
-await seed.posts([{
- title: "There is a lot of snow around here!"
- createdBy: {
- email: (ctx) =>
- copycat.email(ctx.seed, {
- domain: 'acme.org',
- })
+const seed = await createSeedClient()
+
+await seed.posts([
+ {
+ title: 'There is a lot of snow around here!',
+ createdBy: {
+ email: (ctx) =>
+ copycat.email(ctx.seed, {
+ domain: 'acme.org',
+ }),
+ },
+ comments: (x) => x(3),
},
- comments: (x) => x(3)
-}])
+])
```
Running `npx tsx seed.mts > supabase/seed.sql` generates the relevant SQL statements inside your `supabase/seed.sql` file: