Retrieve Members
Retrieve Information about a Member
member
query is used to retrieve information about a member.
It takes username
or id
as an input.
{
member(id: "mRyzC8CiUe") {
username
status
email
id
}
}
List of Members
members
query is used to get a list of members.
It returns a paginated list of members. It takes pagination parameters as inputs.
You can also filter the list using query
or status
input.
{
members(limit: 10, query: "bettermode", status: VERIFIED) {
nodes {
status
username
email
id
}
}
}
Get Members of a Space
spaceMembers
query is used to get a list of members in a space and their roles.
It returns a paginated list of spaceMembers which contains member, role, and space.
It takes pagination parameters as inputs. You can also filter the list using roleIds
input.
{
spaceMembers(limit: 10, spaceId: "9OXzXuoWJ5ni") {
nodes {
member {
id
}
role {
name
}
}
}
}