使用Python Eve Rest和Mongodb过滤嵌入式文档

问题描述 投票:2回答:1

我想通过嵌入文档的属性过滤一些东西。但我无法做到这一点。

http://localhost:5000/vehicle?embedded={"model.brand":1}&where={"model.brand":"5bf3f02e63da120b27dc74b1"}

有没有办法进行此查询?我没有找到任何解决方案来过滤子文档。

python mongodb eve
1个回答
0
投票

python eve不支持此功能。

看看这个链接:https://groups.google.com/d/msg/python-eve/O4e1GTS3jZs/HSZxcK85BAAJ

Nicola Iarocci自己回答了这个问题的原因由于mongo缺乏原生数据关系而难以做到。

© www.soinside.com 2019 - 2024. All rights reserved.