Missing User Organization State

schema-request

#1

Hello,

I was writing a graphQL query similar to GET /user/memberships/orgs in v3

query {
  viewer {
    organizations (first: 100) {
      totalCount
      nodes {
        name
      }
    }
  }
}

I’ve noticed that the state field (showing if the invitation is pending or active) is missing from the organization vector.

There is a viewerIsAMember scalar which is described as follows

Viewer is a member of this organization.

The description is a little vague as being a member does not indicate the state of the membership. Pending members will have this value return true? IMHO the description should clarify this aspect.

So its either that the field is missing, or it is replaced by the viewerIsAMember scalar. I’d suggest rewording the description to include the state of a valid “member”. (anyone with either pending or active membership, or just active members).

Cheers!
Bamieh


#2

:wave: @Bamieh,

Thank you for opening this.

I’ve noticed that the state field (showing if the invitation is pending or active) is missing from the organization vector.

This would be a great addition to the organizations connection. I’ve added this internally as a schema request so that it’s easier to filter on the state of a membership.

I’d suggest rewording the description to include the state of a valid “member”. (anyone with either pending or active membership, or just active members).

That’s an excellent suggestion :+1:. We’ll work on clarifying that.