Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prisma connection resolves incorrectly for fragment with abstract type #1060

Closed
julioxavierr opened this issue Oct 4, 2023 · 2 comments
Closed

Comments

@julioxavierr
Copy link
Contributor

julioxavierr commented Oct 4, 2023

Use case: A connection is queried differently at the same time, using the field directly in the type and using a fragment that has a union (does not happen if the fragment does not use a union).
Problem: The totalCount is resolved correctly, but the edges are always empty.

query AppQuery {
  user {
    files {
      totalCount
    }
    ...App_node
  }
}

fragment App_node on Node {
  ... on User {
    id
    files {
      edges {
        node {
          name
          size
        }
      }
    }
  }
}

Related to #989
Related to #989 (comment)

@hayes
Copy link
Owner

hayes commented Oct 5, 2023

I think this should be fixed now, let me know if you still have any issues after updating

@hayes hayes closed this as completed Oct 5, 2023
@julioxavierr
Copy link
Contributor Author

@hayes I confirm that fixes the issue, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants