如何从 RavenDB 查询特定集合? [英] How to query a specific collection from a RavenDB?

查看:51
本文介绍了如何从 RavenDB 查询特定集合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个数据库中,我存储了两个单独的文档 - CumulativeSprintData 和 Features.我正在尝试从 javascript 查询.现在我只是使用默认值:

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?

谢谢!

推荐答案

您可以使用:

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

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

这篇关于如何从 RavenDB 查询特定集合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆