Skip to content

Commit

Permalink
docs: useSnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 18, 2024
1 parent 6c23df1 commit 6d4fffa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,14 @@ const instance = await createInstanceFromFactory(mq, {
})
```

### Use a Snapshot

```ts
import { useSnapshot } from 'moquerie'

await useSnapshot(mq, 'some-snapshot-id')
```

### Get the resolved context

The resolved context of the moquerie instance is useful to access the database, the pubsub, the resource schema, the list of scripts, resolvers, and so on.
Expand Down

0 comments on commit 6d4fffa

Please sign in to comment.