Giter VIP home page Giter VIP logo

Comments (6)

pbatey avatar pbatey commented on July 20, 2024

Can you privide a code example of the string to pass in and the expected resilts? Or a reference to the angular.js subsection you are referring to? (I'm haven't used angular.js resources)

from query-to-mongo.

wolraich avatar wolraich commented on July 20, 2024

I apologize for the delayed response. Angular resources are described here: https://docs.angularjs.org/api/ngResource/service/$resource. Fundamentally, the issue is that angular doesn't let you specify url query params with a>b format, only a=b. So it would be great if query-to-mongo accepted a=>b as an alternative to a>b. Does that make sense?

from query-to-mongo.

wolraich avatar wolraich commented on July 20, 2024

There's also a similar issue with the $exists format. Angular resources won't allow a query like ?a only ?a=

from query-to-mongo.

wolraich avatar wolraich commented on July 20, 2024

Ah, I looked in the code and see that ?a>b= is functionally equivalent to ?a>b. That's an ok workaround, though I still think ?a=>b would be more intuitive and easier to code on the client.

from query-to-mongo.

pbatey avatar pbatey commented on July 20, 2024

Sorry for the delay - I see what you were getting at - added the behavior in v0.8.0.

from query-to-mongo.

pbatey avatar pbatey commented on July 20, 2024

I've opened issue #18 to address the $exists problem separately.

from query-to-mongo.

Related Issues (18)

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.