papr icon indicating copy to clipboard operation
papr copied to clipboard

MongoDB TypeScript-aware Models

Results 43 papr issues
Sort by recently updated
recently updated
newest added

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/plexinc/papr). ## Config Migration Needed - [ ]...

Closes #142 We facilitate this change by returning the full `TOptions` from schema construction rather than just `TDefaults`. We can then access the default values from `TOptions` when needed. With...

There's a little bit of nuance to getting the most performance out of a query when you only care checking if there exists a row matching a given query. This...

Hi, Another PR about the enum types. After a few tweaks, I managed to accept array of litteral strings as values of `enum`. Now we have ```ts types.enum(['foo', 'bar'], {...

In our usage of Papr, we often have code like the following: ``` const operations: BulkWriteOperation[] = []; if (someCondition) { operations.push(updateOne: { { filter: {}, update: {}} }); }...

We're currently in the process of migrating from mongoose to papr. Here's a question that I have: Say I have schema for `users` collection: ```ts const userSchema = schema( {...

Hello, it would be nice to have discriminator support in papr like in mongoose. It might be possible because $jsonSchema supports match for one of specified schemas with keyword "oneOf"....

enhancement
help wanted

Hey, I was wondering if this would be something you'd be interested to have integrated: ```ts import { schema, types } from 'papr'; const userSchema = schema({ active: types.boolean(), age:...

help wanted

I noticed Papr has no means of storing decimal types, which both mongoose and MongoDB (since 3.4) support: https://mongoosejs.com/docs/api.html#mongoose_Mongoose-Decimal128 https://docs.mongodb.com/upcoming/release-notes/3.4/#decimal-type

enhancement
good first issue
help wanted

Hey, I would like to be able to choose different names for the timestamps. Maybe configuring like this: ``` import { schema } from 'papr'; const schema = schema({ ......

enhancement
help wanted