Skip to content

Commit e676a18

Browse files
MMTEalaister
andauthored
code typo fix in seeding-your-database.mdx (supabase#23838)
* code typo fix in seeding-your-database.mdx * fix prettier --------- Co-authored-by: Alaister Young <[email protected]>
1 parent 2976cd6 commit e676a18

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

apps/docs/content/guides/cli/seeding-your-database.mdx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,20 @@ You can use the Snaplet configuration file `seed.mts` to define the values you w
7171
import { createSeedClient } from '@snaplet/seed'
7272
import { copycat } from '@snaplet/copycat'
7373

74-
const seed = await createSeedClient();
75-
76-
await seed.posts([{
77-
title: "There is a lot of snow around here!"
78-
createdBy: {
79-
email: (ctx) =>
80-
copycat.email(ctx.seed, {
81-
domain: 'acme.org',
82-
})
74+
const seed = await createSeedClient()
75+
76+
await seed.posts([
77+
{
78+
title: 'There is a lot of snow around here!',
79+
createdBy: {
80+
email: (ctx) =>
81+
copycat.email(ctx.seed, {
82+
domain: 'acme.org',
83+
}),
84+
},
85+
comments: (x) => x(3),
8386
},
84-
comments: (x) => x(3)
85-
}])
87+
])
8688
```
8789

8890
Running `npx tsx seed.mts > supabase/seed.sql` generates the relevant SQL statements inside your `supabase/seed.sql` file:

0 commit comments

Comments
 (0)