Skip to content

@cypher on relationship fields #5623

@flieks

Description

@flieks

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions