data icon indicating copy to clipboard operation
data copied to clipboard

Data modeling and relation library for testing JavaScript applications.

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

This PR is incomplete, as the ts-expect-error tests are failing in one-to-one test files for create and update. My intention here is for the return value of oneOf to default...

There have been a few times where I've found it would be useful to pass an array of model definitions to create, so I've added a createMany api. Happy to...

Right now when passing an empty array when using `in` does not return anything, is there a way to make it return everything instead? this will help to use dynamic...

Hi everyone! First of all, thanks a lot for this project. It was the missing feature that MSW was lacking. So far I've found it easy to use and extremely...

It is very annoying to have to create a whole object just cause one of the properties, the relationship, is not filling by default: ```ts continueArticle: { id: primaryKey(() =>...

So, we have the following database: ```ts const db = factory({ article: { id: primaryKey(() => _articleId++), title: () => title, slug: () => faker.helpers.slugify(title), author: nullable(manyOf("author")), thumbnail: oneOf("image"), category:...

Right now we have a complex **article** model: ```ts export type TArticle = { /** article's thumbnail */ thumbnail: TImage; /** article's title */ title: string; /** article's category */...

Hello, folks. I think an update is due regarding this library's status and future. I've been in the progress of rewriting Data for some time now, and it's going to...

I have a modeling like this: ```typescript hosting: { id: primaryKey(idNumberIncr()), name: faker.internet.domainName, slug: faker.lorem.slug, server: oneOf('server'), }, ``` On the production API, the `slug` property has a generated value...

I noticed [this message](https://github.com/mswjs/data/issues/285) about this lib being in maintenance mode but I hope this bug is big enough to fix or has an easy solution. `data/src/model/generateRestHandlers.ts` [line 200](https://github.com/mswjs/data/blob/13211933677e82fcb345f5b59964cdba7f1c16f2/src/model/generateRestHandlers.ts#L200) and...