Skip to content

Export pre-populated databases #17

Description

@marcosvega91

We can provide some api to generate handles, entities, models, for example I can create Pokemon API by using

import { createPokemonAPIs } from '@mswjs/data/pokemon'

createPokemonAPIs(mswInstance)

The function will create a new db with pokemon entities, populate with some data and attach to msw instance the handlers.
We can add more examples that can be used for POC applications

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXImproves developer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions