Skip to content

RDoc-3645 Get query statistics: Fix examples#2349

Open
Danielle9897 wants to merge 1 commit intoravendb:mainfrom
Danielle9897:RDoc-3645-getQueryStats-fixExamples
Open

RDoc-3645 Get query statistics: Fix examples#2349
Danielle9897 wants to merge 1 commit intoravendb:mainfrom
Danielle9897:RDoc-3645-getQueryStats-fixExamples

Conversation

@Danielle9897
Copy link
Member

Issue link

https://issues.hibernatingrhinos.com/issue/RDoc-3645/Get-query-statistics-Fix-examples

Additional description

  • The following doesn't compile:

    List<Employee> employees = session.Query<Employee>()
        .Where(x => x.FirstName == "Anne")    
        .Statistics(out QueryStatistics stats) 
        .ToList();
    

    Had to modify the code to:

    List<Employee> employees = session.Query<Employee>()
        .Statistics(out QueryStatistics stats) // Call 'Statistics' before 'Where'
        .Where(x => x.FirstName == "Anne")    
        .ToList();
    
  • Fixed layout

Type of change

  • Content - docs
  • Content - cloud
  • Content - guides
  • Content - start pages/other
  • New docs feature (consider updating /templates or readme)
  • Bug fix
  • Optimization
  • Other

Changes in docs URLs

  • No changes in docs URLs
  • Articles are restructured, URLs will change, mapping is required (update /scripts/redirects.json file, set Documents Moved PR label)

Changes in UX/UI

  • No changes in UX/UI
  • Changes in UX/UI (include screenshots and description)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant