Skip to content

Commit

Permalink
Fix spurious example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
autopulated committed Feb 17, 2024
1 parent 6309a71 commit 47e9dc1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -972,10 +972,12 @@ const CommentSchema = ddm.Schema('c', {
})
const Comment = table.model(CommentSchema)
const c1 = await (new Comment({ text: 'some text', commentedAt: new Date() })).save()
// { text: 'some text', commentedAt: 2028-02-29T16:43:53.656Z, type:'comment', id: ... }
console.log(await Foo.getById(f1.id))
// ...
console.log(await Comment.queryMany({ user: userId }))
console.log(await Comment.queryMany({ user: userId, createdAt: { $gt: new Date('2024-01-01') } }))
console.log(await Comment.queryMany({ section: 'thread-123' }))
```
Expand Down

0 comments on commit 47e9dc1

Please sign in to comment.