Skip to content

Commit 40b6409

Browse files
committed
fix: update reference syntax from ref() to fetch() for user and post IDs
1 parent d7a5b23 commit 40b6409

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/copia/data/dsl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ created_at: past_date()
120120
It is the only generator that reads from the database rather than generating data.
121121

122122
```
123-
user_id: ref('users.id')
124-
post_id: ref('posts.id')
123+
user_id: fetch('users.id')
124+
post_id: fetch('posts.id')
125125
```
126126

127127
The argument is a string in `'table.column'` format.

0 commit comments

Comments
 (0)