Coder Social home page Coder Social logo

MongoDB contribution? about odata-query HOT 3 OPEN

gorilla-co avatar gorilla-co commented on July 18, 2024
MongoDB contribution?

from odata-query.

Comments (3)

OliverHofkens avatar OliverHofkens commented on July 18, 2024

I personally have zero experience with MongoDB, but I'll happily review (and learn in the process) any contributions!
Thanks for your interest!

from odata-query.

cblegare avatar cblegare commented on July 18, 2024

At first sight, I feel the main issue would be that for SQLAlchemy and DjangoORM it seems you inspect the ORM declarations to help infer the type conversion to use. That means that a ODM mapping would be useful to do the same job, but there are many and much less useful and used than ORMs mentioned above. I'll look into this a bit deeper and stay in touch

from odata-query.

OliverHofkens avatar OliverHofkens commented on July 18, 2024

(Again, I have no MongoDB experience so excuse me if what I say is nonsense)
If there is no "mainstream" ORM/ODM for MongoDB, then perhaps the transformer could just output a "naive" query, unaware of the structure or types of the underlying data.

An earlier version of this library did the same for Django, the only downside was that an error would only be noticed when the query actually fires and the database complains (maybe a column didn't exist or a wrong type was used). So it was pretty hard to show the user a clear error, without mapping every possible database error to a user-friendly error.
The model and type introspection were added later in order to pull some benefits of having the ORM into this library, by catching errors earlier and return meaningful messages to the end user.

If I find some extra time I'll read up a bit on MongoDB, so maybe I can offer some more useful feedback 😄

from odata-query.

Related Issues (20)

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.