data icon indicating copy to clipboard operation
data copied to clipboard

Data modeling and relation library for testing JavaScript applications.

Results 60 data issues
Sort by recently updated
recently updated
newest added

Currently, there is a possibility to define some model property to be an `Array` (if I got it correctly, it was introduced in [#113](https://github.com/mswjs/data/pull/113)). Example use of it can be...

Hey! Have a question about auto populating `oneOf` fields. Imagine the following factory: ```js const db = factory({ item: { it: primaryKey(uuid), metadata: oneOf("chain"), }, metadata: { id: primaryKey(uuid) name:...

Hi there! 👋 I stumbled upon that case 2 or 3 times and decide to give it a shot to solve my problem and most likely help some other great...

This is regarding issue #203 I have extended the existing `ModelValueType` and the function `isModelValueType` to allow for `object` type. I also added a new test case covering the scenario...

# Current behavior It is not possible to get a model for which a specific property is null. ```ts const db = factory({ user: { id: primaryKey(Number), deletedAt: nullable(Number), },...

I suggest we add a client-side synchronization layer to keep multiple clients that use the same DB in sync. ## Implementation Each `factory` call attaches a sync middleware. That middleware...

feature

- Originated from #202 This has to be supported: ```js const db = factory({ user: { id: primaryKey(String), permissions: nullable(() => ({ id: String, })), }, }) ``` But it's...

feature
good for beginners

Use case: sometimes it's needed to generate field value based on another field value. This could be done if factory functions in model definitions were supported. Example: ```ts import {...

feature
help wanted
needs:discussion

current my project has model that has non structured object property. it's like below data. ```ts const userConfig1 = { id: 1, userId: 1, config: {} } const userConfig2 =...

This is a first implementation of the snapshot utility. This will be updated after the implementation of the storage. close #86