Mongodb RESTHeart修补程序不更新文档
我正在尝试使用RESTHeart api更新MongoDB文档中的一个键,但是该值没有得到更新,但是,我得到了200 OK 我试着打补丁,把两个都打了。下面是我尝试的URIMongodb RESTHeart修补程序不更新文档,mongodb,restheart,Mongodb,Restheart,我正在尝试使用RESTHeart api更新MongoDB文档中的一个键,但是该值没有得到更新,但是,我得到了200 OK 我试着打补丁,把两个都打了。下面是我尝试的URI http PUT "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12 http PATCH "http://localhost:8080
http PUT "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12
http PATCH "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12
这两次我都得到了200 OK的响应,但是值没有更新
我做错什么了吗。我找不到任何这样的例子
我正在使用Restheart V2.0.0 Beta。批量更新与筛选器表达式匹配的文档
http修补程序“http://localhost:8080/presence/active_watchers/*?筛选器={'presentity_uri':'sip:服务-1@opensipstest.org“}”事件\u id=12
如果您放置/修补URI/presence/active_watchers
,您实际上会更新集合属性(在RESTHeart dbs中,集合有自己的属性)
要更新文档,您需要提供文档URI/db/coll/docid
,对于批量更新,您可以使用通配符/db/coll/*?filter=[filter expression]
请参阅文档表单中的详细信息。要批量更新与筛选器表达式匹配的文档,请执行以下操作
http修补程序“http://localhost:8080/presence/active_watchers/*?筛选器={'presentity_uri':'sip:服务-1@opensipstest.org“}”事件\u id=12
如果您放置/修补URI/presence/active_watchers
,您实际上会更新集合属性(在RESTHeart dbs中,集合有自己的属性)
要更新文档,您需要提供文档URI/db/coll/docid
,对于批量更新,您可以使用通配符/db/coll/*?filter=[filter expression]
请参阅文档表单中的详细信息。可以看到此问题。可以看到此问题。