Code Monkey home page Code Monkey logo

ts-mongodb-orm's People

Contributors

terence410 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pdzly

ts-mongodb-orm's Issues

Why is "objectField" in SchemeValidation type of any?

2022-10-16 11_50_18-ts-mongodb-orm_README md at 2 0 ยท terence410_ts-mongodb-orm โ€“ Mozilla Firefox

Why is the objectField type of any but in the validation it says it needs to have a name attribute with type of string?

This would be a little bit more clearer if it has a comment on it or make it a type of an interface with a name attribute

Example of full text search and relations.

Hi, I am trying to find a MongoDB driver with Typescript and found this one. I know this is in its early stage, but since it is production ready, I might use this one. Can anyone give me an example of full text search on a collection and relations with different collections with this package?

findOneAndUpdate error

query.getUpdater().findOneAndUpdate();

is broken and outputs an error

MongoError: findOneAndUpdate option returnOriginal is deprecated in favor of returnDocument and cannot be combined

It passes through returnOriginal: false in QueryUpdater.js

This is error is most likely due to an updated version of mongodb

ts-mongodb-orm version: 1.0.12
mongodb version: 3.6.9

Cache system?

Is there any way to implement a cache system using this ORM?

Examples:

  1. Do not send a document update request to the mongodb server if the document data is the same as what is in the cache.
  2. Cache time for document queries, for example: the query for books should have a results cache of 5 seconds, this to prevent multiple queries requests to the mongodb server.
  3. If a document is edited from another mongodb client the new results are added to the cache seconds after the cache time configured for "x" schema.

I don't know if it is possible to do this at the moment, but such a feature would be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.