data
data copied to clipboard
Data modeling and relation library for testing JavaScript applications.
Below, I will outline the roadmap for Data, talk about some of its design flaws, and how they should be addressed. This document serves as a way for everyone to...
I am trying to setup test cases with `jest`, but after the test was finished the process will stalled and does not exit. Using the command `jest --detectOpenHandles` will show...
Hi, thank you for developing a great library. I would like to compare null with equals and notEquals in the Where clause, but it seems that it is not currently...
I'm getting "Type instantiation is excessively deep and possibly infinite" error when calling drop. This error is only present when tsconfig has `strict` set to false. Changing the type signature...
Currently, the documentation doesn't state any approach of how to handle errors. Topics to cover: 1. What is the format of errors? Do they have different types (extensions of `Error`...
Fix #346 Fix many() relation updates so array assignments and element-level mutations keep foreignKeys and inverse links in sync, guarding the “through relation” early hook from array indices. - Maintain...
In the following example, the final post only has one (1) comment, whereas I would expect it to have two (2). ```ts const postSchema = z.object({ get comments() { return...
The following code fails to create a record: ```javascript const contactSchema = z.object({ email: z.string() }) const userSchema = z.object({ id: z.number(), contact: contactSchema }) const postSchema = z.object({ title:...
- Adds a test for #348
I'm trying to reproduce the following documented example: ```ts import { Collection } from "@msw/data" import z from "zod/v4" const postSchema = z.object({ get comments() { return z.array(commentSchema) }, })...