简体   繁体   中英

How to get list of issues of a repo using Github GraphQL.NET

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 .

在此处输入图像描述

What is wrong here?

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

r.Issues(100, null, null, null, null, null, null, null)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM