0

According to the documentation, I used this code to build a query:

var query = new Query()
.Repository("some_repo", "MuziburRahman")
.Select(r => new
{
    r.Name,
    r.Description,
    Issues = r.Issues(100, null, null, null, null, null, null).Select(i => i.Nodes).Select(i => new
    {
        i.Title,
        i.Body,
    }).ToList(),
});

But it shows error: An expression tree may not contain a call or invocation that uses optional arguments.

enter image description here

What is wrong here?

Muzib
  • 2,412
  • 3
  • 21
  • 32

1 Answers1

0

Seems like they added another parameter, so you have to add another null.

r.Issues(100, null, null, null, null, null, null, null)
Sean Hall
  • 7,629
  • 2
  • 29
  • 44