المشاريع
حول
نماذج MongoDB المتوافقة مع TypeScript.
أدوات التطويرالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلPapr
- TypeScript-safe schemas
- JSON Schema MongoDB validation
- :tada: Lightweight library
- :rocket: Blazing fast
papr is a lightweight library built around the MongoDB NodeJS driver, written in TypeScript.
papr uses MongoDB's JSON Schema validation feature to enable validation of document writes at runtime (requires MongoDB 3.6+).
papr has a familiar API - if you have used the raw mongodb methods to query and change documents before, then you already know how to use papr.
Sample code
import Papr, { schema, types } from 'papr';
const papr = new Papr();
const User = papr.model('users', schema({
age: types.number(),
firstName: types.string({ required: true }),
lastName: types.string({ required: true }),
}));
const johnWick = await User.find({ firstName: 'John', lastName: 'Wick' });
Documentation
Read the documentation at: plexinc.github.io/papr
Contributing
Please read the contributing guidelines.
Before contributing, please read the Code of conduct.
License
MIT
Inspiration
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…