-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Description
What happened?
In the example below, the call to ProjectsV2(first: 10)
inside the Select
lambda results in this compiler error:
CS0854 - An expression tree may not contain a call or invocation that uses optional arguments.
It would be helpful to provide clearer guidance or workarounds.
var query = new Query()
.Repository(owner: owner, name: repo)
.Issue(number: issueNumber)
.Select(i => new
{
i.Id,
i.Title,
i.Number,
Projects = i.ProjectsV2(first: 10).Nodes // <=== CS0854
.Select(p => new
{
p.Number,
p.Title
})
});
Versions
Nuget: Octokit.GraphQL 0.40.0-beta
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Type
Projects
Status
🔥 Backlog