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

@cypher on relationship fields #5623

Open
flieks opened this issue Oct 4, 2024 · 0 comments
Open

@cypher on relationship fields #5623

flieks opened this issue Oct 4, 2024 · 0 comments
Labels
feature request New feature or request

Comments

@flieks
Copy link

flieks commented Oct 4, 2024

Thanks for this great library.

I only have 1 small problem. I want to put a field like this on a relationship type

type Product @relationshipProperties {
    names: [String!]
    
    name(language: String): String
    @cypher(
     statement: """
          MATCH(this)
          etc.... // depending on language value, take the correct name from names
          return value
          """
          columnName: "value"
        )
      }
}

But @cypher is not allowed on a relationship.

I could solve this using a custom resolver, but then a new issue occurs that the returned TYPE from the resolver is not filterable anymore (doesnt hook into the graphql query ecosystem)

@flieks flieks added the feature request New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant