A plugin for extracting model attributes and associations into JSON
npm install @rvoh/dream-plugin-json-snapshotA plugin to take snapshots of a record, traversing all sub-associations, and spitting the resulting data out as JSON
``ts
import { Sortable } from '@rvoh/dream-plugin-json-snapshot'
class User extends Sortable(ApplicationModel) {
...
}
const user = await User.firstOrFail()
await user.takeSnapshot()
`
- Ask them on Stack Overflow, using the [dream]` tag.
Dream is an open source library, so we encourage you to actively contribute. Visit our Contributing guide to learn more about the processes we use for submitting pull requests or issues.
Are you trying to report a possible security vulnerability? Visit our Security Policy for guidelines about how to proceed.