Open
Description
I'm trying to obtain all issues organised by project and column.
If I execute a query with:
public class ProjectModel
{
public string Name;
public string Url;
public List<ColumnModel> Columns;
}
public class ColumnModel
{
public string Name;
public List<IssueModel> Issues;
}
public class IssueModel
{
public string Title;
}
var query = new Query()
.Repository(repo, owner)
.Projects()
.AllPages()
.Select(
project => new ProjectModel()
{
Name = project.Name,
Url = project.Url,
Columns = project
.Columns(null, null, null, null)
.AllPages()
.Select(
col => new ColumnModel()
{
Name = col.Name,
Issues = col
.Cards(null, null, null, null, null)
.AllPages()
.Select(
projectCard => projectCard
.Content
.Switch<IssueModel>(
when => when
.Issue(
issue => new IssueModel()
{
Title = issue.Title
})))
.ToList()
})
.ToList()
});
With the query as it stands above, I get the error:
By the time this query traverses to the cards connection, it is requesting up to 1,000,000 possible nodes which exceeds the maximum limit of 500,000.
Which is kind of annoying because it's an insane theoretical maximum. Anyway, if I try to limit the results with e.g. .Columns(10, null, null, null)
then I get:
There can be only one argument named "first"
Sorry if I am missing something.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🔥 Backlog