ChilliCream / ChilliCream/graphql-platform

Cannot convert from 'System.Collections.Generic.IReadOnlyList<StrawberryShake.EntityIdOrData>' to ...

Open
#4,662 10 comments 0 reactions 1 assignee View on GitHub

@michaelstaib is already working on this.

Since Feb 24, 2022.

🌶️ strawberry shake
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.