Created
October 16, 2015 20:25
-
-
Save bryandh/9d799b61a46bda0418dc to your computer and use it in GitHub Desktop.
Querying a RavenDB in Raven Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First create a new index on the desired database. | |
// Say we have an Activity collection, we could write the following index: | |
from activity in docs.Activities | |
select new { | |
activity.Id | |
} | |
// After that, we can query the database using a combination of the created index and a Lucene query. | |
// In this example, we can specify the exact Id of the document we would like to query for. | |
Id: activities/1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment