Here's how I expected the json to look for the [question] document
(incomplete, but you get the point)
{
"userId": 1,
"questionId": 1,
"questionTitle": "MyTitle",
"question": "howdoImanageRavenDB?",
"questionDate": "4/26/09",
"questionAnswers": [
{
"answerId": 1
"userId": 2,
"answer": "Here's an answer to your question",
"answerDate": "4/26/09"
}
]
On Feb 26, 1:16 pm, "Oren Eini (Ayende Rahien)" <
aye...@ayende.com>
wrote:
> Here is one option. The User's reputation is stored inside the User
> document.
> Each question/comment include the user's id.
>
> You can then query it using:
>
> session.Query<Question>()
>
> .Customize(x=>x.Include("UserId").Include("Answers,UserId").Include("Answer s,Comments,UserId")
> )
> .ToList();
>
> This will load the user who asked the question, the users who answered the
> question and all of the comments in a single query to the database.
>