-
Hi! I found this two NuGet packages with functions that I'm going to need for my next project in NodeJS:
But there is no documentation anywhere:
Thanks! Background: No need to readI'm looking for a Database for my next project in NodeJS. I'm deciding between RavenDB and MongoDB, so far RavenDB looks gorgeous in comparison, except for the lack of third-party utilities that I consider essential for my project. I'm aware that RavenDB doesn't need an ORM, but it's a great PLUS, i.e., in the case of MongoDB we have "Mongoose" and "PRISMA". Apart from all the features and comparisons out there, these are the main features I like. Mongoose and Prisma offers:
Mongoose:
Prisma:
With RavenDB I know that I'm saying goodbye to an effortless way of working in exchange for more control. But at least I need the "Unique Constraints" and "Simulated Referential Integrity". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Both of those packages are for RavenDB 3.5, which is no longer supported. At any rate, you can do most of what you wnat in different manners. The Additional Assembly allows you to execute interesting things during indexing time, I don't think that this is applicable for your scenario. RavenDB has an OR/M, it is just that you get that by default from the client. Note that unique constraints in RavenDB would work differently (need cluster wide transactions for that, so require explciit behavior), see: https://ayende.com/blog/194405-A/ravendb-5-2-simplifying-atomic-cluster-wide-transactions For queries, note that we provide support for this. So you can do:
And you'll get proper autocomplete in the |
Beta Was this translation helpful? Give feedback.
Both of those packages are for RavenDB 3.5, which is no longer supported.
At any rate, you can do most of what you wnat in different manners.
For enabling globally, see the events on the node.js client, which will let you handle things in a corss cutting manner.
The Additional Assembly allows you to execute interesting things during indexing time, I don't think that this is applicable for your scenario.
RavenDB has an OR/M, it is just that you get that by default from the client.
Note that unique constraints in RavenDB would work differently (need cluster wide transactions for that, so require explciit behavior), see: https://ayende.com/blog/194405-A/ravendb-5-2-simplifying-atomic-cluster…