Skip to content
Discussion options

You must be logged in to vote

If the child node is not a collection there will be only one role, right? That role will have a single role code. If you want to filter the Person object using RoleCode, I'd suggest you to add the where block on the Person resolver like this:

query {
  person(where: { currentrole: { RoleCode: { eq: "XX" } } }) {
    firstname
    lastname
    currentrole {
      rolename
      rolecode
    }
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bo55vxr
Comment options

Answer selected by bo55vxr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants