data
data copied to clipboard
Data modeling and relation library for testing JavaScript applications.
So I'm back to experimenting with the library and trying to implement real-life models with relations. I see some inconsistency with `oneOf` relation. When a model definition has simple fields,...
Hi, I’ve been trying mswjs/data to mock our APIs and found it quite nice… until I tried with "larger" datasets: - one account - having a list of 100 clients...
I am using a reduce-toolkit example app and getting errors. I am trying to update a Post in the mutations example app but get this error: ``` TypeError: comparatorFn is...
This API like that ```js model.findFirst({ where: (item) => return true }); ``` It will be more flexible.
I'm trying to use this library to mock Apollo and am running into a few issues when using the generics (`.query`): 1. `__typename` is required and expects a predetermined value....
It seems like models, that have a field with an Array type, cannot be queried. A simple model, where roles field is an array of numbers: ```js const db =...
Hello, I'm wondering if types returned by generating data in these two different ways should be the same or not? ## Example one ``` article: { metadata: { author: nullable(String),...
Right now we have the following definition for our models: ```ts type TArticleBase = { /** article's thumbnail */ thumbnail: TImage; /** article's title */ title: string; /** article's category...
We have started writing out a factory for our graphql schema . I was thinking it would be great if this could be generated automatically from the schema. Is this...
When referencing model(s), an object might be designed to only hold the `primaryKey(s)` of the referenced model(s). For example, [Mirage](https://miragejs.com/docs/main-concepts/relationships/) when relating the models `blogPost` and `comments`,... ```typescript import {...