Skip to content

Commit 6d4fffa

Browse files
committed
docs: useSnapshot
1 parent 6c23df1 commit 6d4fffa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,14 @@ const instance = await createInstanceFromFactory(mq, {
723723
})
724724
```
725725

726+
### Use a Snapshot
727+
728+
```ts
729+
import { useSnapshot } from 'moquerie'
730+
731+
await useSnapshot(mq, 'some-snapshot-id')
732+
```
733+
726734
### Get the resolved context
727735

728736
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.

0 commit comments

Comments
 (0)