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

Hello! Thanks for the awesome tool! I am wondering if you would accept a PR that adds `toHandlers('json-api')`? This would add support for the JSON:API Specification: https://jsonapi.org I have a...

See use case: https://github.com/mswjs/data/issues/262

sandbox: https://stackblitz.com/edit/vitejs-vite-u5yovo?file=src%2Fmain.jsx,src%2Fmocks%2Fhandlers.js&terminal=dev run the sandbox and check the console im running msw 2.0 and this is happening while trying to generate the handlers

Hey. I tried to implement persist layer https://github.com/mswjs/data/issues/49 . This PR is based on https://github.com/mswjs/data/pull/87 You can see example of usage in my pet project: https://github.com/noveogroup-amorgunov/nukeapp/blob/90a0f75f57f877d4889033456f3628c5d1e34699/src/shared/lib/server/serverDb.ts#L49-L51 (PR: https://github.com/noveogroup-amorgunov/nukeapp/pull/14) If this...

With the feature introduced by https://github.com/mswjs/data/pull/257, setting a nullable object to null that has a nested relationship (tested with `ManyOf`), results in a `TypeError: Object.defineProperty called on non-object` E.g: ```typescript...

Great work guys! 👏 One of my fields should represent a JSON column supported by some DBMS. They're able to store any valid JSON object. My model: ```js factory({ timelineItemEffectMetadata:...

Hello, How can I create the schema in a manyof relationship where the ID of one model matches the primary key of another table when the create method is used?...

feature

I'm working on an application where all the BE types are compiled into Typescript for me. I would _love_ to be able to enforce type-safety on the models in `factory`...

Solves https://github.com/mswjs/data/issues/269 by making `oneOf` relation required (throwing an error) unless the field is explicitly set to nullable.

some="Abc" where: { some: { contains: "abc", }, }, Actual result: no matches