Code Monkey home page Code Monkey logo

Comments (10)

medvedodesa avatar medvedodesa commented on May 19, 2024

from sanic-motor.

Lozovaca avatar Lozovaca commented on May 19, 2024

Thank you for your response, but i still can't get what is wrong with my query i think this package doesn't have support for this type of queries.

from sanic-motor.

lixxu avatar lixxu commented on May 19, 2024

did you miss quotes for type? `{ type: "Point", 'coordinates': [20.44974230, 44.8772 ] }

from sanic-motor.

Lozovaca avatar Lozovaca commented on May 19, 2024

Yes, i changed that but it still doesn't change anything. Your package helped me a lot, i managed to send data to mongo_db trough Sanic, and now i send qeospetial queries trough Django.

from sanic-motor.

lixxu avatar lixxu commented on May 19, 2024

you need use new version sanic.

from sanic-motor.

bolorundurovj avatar bolorundurovj commented on May 19, 2024

@lixxu @Lozovaca Please where can i get a comprehensive documentation. Also, how do i pass filters with find query?

from sanic-motor.

lixxu avatar lixxu commented on May 19, 2024

https://sanicframework.org/en/guide/basics/request.html#arguments

https://github.com/lixxu/sanic-motor/blob/9e61feab8b5fdd61040595e37e4e72f63e8b9085/sanic_motor/init.py#L247

https://motor.readthedocs.io/en/stable/api-asyncio/asyncio_motor_collection.html

sanic-motor only adds some sanic related args/kwargs, others keeps the same as motor. Check the source code please.

from sanic-motor.

bolorundurovj avatar bolorundurovj commented on May 19, 2024

https://sanicframework.org/en/guide/basics/request.html#arguments

https://github.com/lixxu/sanic-motor/blob/9e61feab8b5fdd61040595e37e4e72f63e8b9085/sanic_motor/init.py#L247

https://motor.readthedocs.io/en/stable/api-asyncio/asyncio_motor_collection.html

sanic-motor only adds some sanic related args/kwargs, others keeps the same as motor. Check the source code please.

@lixxu When i try this violations = await Violation.find({'speed': {'$gt': 5}}) i get this error: AttributeError: 'dict' object has no attribute 'args'

from sanic-motor.

lixxu avatar lixxu commented on May 19, 2024

have you updated sanic to new version?

from sanic-motor.

lixxu avatar lixxu commented on May 19, 2024

closed as long time feedback.

from sanic-motor.

Related Issues (13)

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.