Skip to content

Instantly share code, notes, and snippets.

@bryandh
Created October 16, 2015 20:25
Show Gist options
  • Save bryandh/9d799b61a46bda0418dc to your computer and use it in GitHub Desktop.
Save bryandh/9d799b61a46bda0418dc to your computer and use it in GitHub Desktop.
Querying a RavenDB in Raven Studio
// 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