Named model sample in Writing Queries page is incorrect #196
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Documentation
Improvements or additions to documentation
The sample at the bottom of Writing Queries is wrong. The syntax for creating a named object is different from anonymous objects. The following is a complete sample that works except I don't know how to get the issues.
A minor issue is that the Repository method arguments are reversed.
The important part that is incorrect is:
The problem with the issues is that Repository.Issues is an IssueConnection, right? I get the impression that the definition of issues has been (appropriately) made more complicated after the article was written.
Also, I avoid using var but fans of var can change that code if they feel it is necessary. I don't think it will make a difference here.
The text was updated successfully, but these errors were encountered: