-1

I was able to get the usernames like this:

query {
  allUsers {
    edges {
      node {
        username
      }
    }
  }
}

But when I tried the same for the xxx node like this:

query {
  allUsers {
    edges {
      node {
        xxx
      }
    }
  }
}

It says:

Field "xxx" of type "NoteObjectConnection" must have a sub selection.

How can I read the data in xxx node?

Zsolt Meszaros
  • 21,961
  • 19
  • 54
  • 57

1 Answers1

0

In GraphQL, every field must resolve to concrete data (like Int, Float, String, etc.). The error is pretty straightforward; you need to select fields on xxx:

query {
  allUsers {
    edges {
      node {
        xxx {
          other
          fields
          needed
        }
      }
    }
  }
}
Zsolt Meszaros
  • 21,961
  • 19
  • 54
  • 57