How to query a specific collection from a RavenDB?

非 Y 不嫁゛ 提交于 2019-12-11 09:29:59

问题


In one database, I am storing two separate documents - CumulativeSprintData and Features. I'm trying to query from javascript. Right now I'm just using the default:

http://servername:8080/databases/sprintprogress/indexes/dynamic?

The problem is that this default query pulls in documents of both types. How do I specify which document type I want to pull down?

Thanks!


回答1:


You can use:

http://servername:8080/databases/sprintprogress/indexes/dynamic/Features

http://servername:8080/databases/sprintprogress/indexes/dynamic/CumulativeSprintDatas


来源:https://stackoverflow.com/questions/10837730/how-to-query-a-specific-collection-from-a-ravendb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!