fastapi-pagination icon indicating copy to clipboard operation
fastapi-pagination copied to clipboard

I am facing bellow issue with geeting count of geosptial query on mongo , is there any solution ? while using paginate

Open marxyes opened this issue 2 years ago • 3 comments

pymongo.errors.OperationFailure: $geoNear, $near, and $nearSphere are not allowed in this context, full error: {'ok': 0.0, 'errmsg': '$geoNear, $near, and $nearSphere are not allowed in this context', 'code': 2, 'codeName': 'BadValue'}

marxyes avatar Apr 11 '22 22:04 marxyes

Hi @marxyes,

I am not an expert on mongo( Maybe someone who has created mongo extension can help with it.

uriyyo avatar Jun 05 '22 12:06 uriyyo

Hi @marxyes,

I think there is no integration for pymongo yet. I've created PR #330 to add it. A quick solution would be to use Motor or Mongoengine instead of pymongo. Hope this helps.

nikstuckenbrock avatar Jun 24 '22 07:06 nikstuckenbrock

Hi @nikstuckenbrock @marxyes,

pymongo integration has been released under 0.10.0 version.

uriyyo avatar Sep 04 '22 14:09 uriyyo

Hi @marxyes,

Are you still facing this issue? Could you please provide a code snippet to reproduce this issue?

uriyyo avatar Sep 18 '22 10:09 uriyyo

Hi @marxyes,

Please, reopen this issue if you still facing this issue

uriyyo avatar Nov 27 '22 17:11 uriyyo