ChilliCream / ChilliCream/graphql-platform
Cannot convert from 'System.Collections.Generic.IReadOnlyList<StrawberryShake.EntityIdOrData>' to ...
@michaelstaib is already working on this.
Since Feb 24, 2022.
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
This is thrown when is trying to generate code:
StrawberryShake.CodeGeneration.CSharp.Analyzers/StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator/GraphqlClient.StrawberryShake.cs(5463,115): error CS1503: Argument 1: cannot convert from 'System.Collections.Generic.IReadOnlyList<StrawberryShake.EntityIdOrData>' to 'System.Collections.Generic.IReadOnlyList<GraphQL.IClosePayment_CommitPayments_Results>
Steps to reproduce
query:
mutation ClosePayment($commitPaymentInput: [CommitPaymentInput!]!) {
commitPayments(payments: $commitPaymentInput) {
results {
id
}
}
}
schema:
...
union PaymentActionResult = ClaimPayment | PolicyPayment | PaymentCommitFailure | AccessDeniedError
type PaymentActionsResultList {
results: [PaymentActionResult!]!
}
...
Relevant log output
No response
Additional Context?
I believe the error is on the results list, but have no idea why that happens.
Product
Strawberry Shake
Version
12.5.0.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.