Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
This looks very cool I might consider using it!
The way I'm setting up Mongo for my project[1] is that all items go into a single collection and use a multi key index on a `target` array so queries look like this:
{ $and: [ { target: { $elemMatch: { id: `user`, type: 'entityType' } } }, { target: { $elemMatch: { id: 'ACTIVE', type: 'status' } } }, ] }
Demo form Rick Houlihan here: https://youtu.be/eEENrNKxCdw?t=1136
Does Papr support this type of schema? I didn't see a way to combine them into one Model and use it like "db.findOne()". I guess sort of what I'm asking for is discriminators? [2].
[1] https://github.com/plutomi/plutomi/pull/776
Related posts
- We're building Bridge-Mongo: a fully typed MongoDB ORM, built on top of Mongoose.
- typeorm or mongoose?
- IS there a way to generate Swagger model schemas from interfaces
- Pydantic vs Protobuf vs Namedtuples vs Dataclasses
- Spartan Schema: Like JSON Schema, but simpler, and with automatic Typescript types