Skip to content
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

Configuring the store

Darko Kukovec edited this page Jun 24, 2017 · 1 revision

The default store should be extended in case we want to use custom models. In this case, we need to define a types property on the extended class that contains a list of all defined models:

class MyStore extends Store {}
MyStore.types = [Person, Pet];

const store = new MyStore();
Clone this wiki locally