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

"Attribute typename not found" on connection using the filter "typename" #6031

Open
angrykoala opened this issue Feb 28, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@angrykoala
Copy link
Member

Given the type definition:

    interface Production {
        title: String!
    }

    type Show implements Production @node {
        title: String!
    }

    type Movie implements Production @node {
        title: String!
        actors: [Actor!]! @relationship(type: "ACTED_IN", direction: IN, properties: "ActedIn")
    }
    type Actor @node {
        name: String!
        ratings: [Int!]!
        lastRating: Int
        movies: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT, properties: "ActedIn")
    }

    type ActedIn @relationshipProperties {
        year: Int
    }

A query with a connection, using the typename filter fails with the error "Attribute typename not found":

query TopLevelCount {
  productionsConnection(where: { typename: [Movie] }) {
    edges {
      node {
        title
      }
    }
  }
}

Epected behaviour

The operation should be equivalent to the (working) non-connection endpoint:

query TopLevelCount {
  productions(where: { typename: [Movie] }) {
        title
  }
}
@angrykoala angrykoala added the bug Something isn't working label Feb 28, 2025
angrykoala added a commit that referenced this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants