Skip to main content

Retrieve Spaces

Retrieve Information about a Space#

space query is used to retrieve information about a space. It takes id, path or slug as an input.

{
space(id: "ChLtv0osEWyi") {
id
type
slug
name
}
}

List of Spaces#

spaces query is used to get a list of spaces. It returns a paginated list of spaces. It takes pagination parameters as inputs. You can also filter the list using query, collectionId, or memberId input.

{
spaces(limit: 10, query: "tribe") {
nodes {
id
type
slug
name
}
}
}

Get Spaces of a Member#

memberSpaces query is used to get a list of spaces for a member 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 collectionId input.

{
memberSpaces(limit: 10, memberId: "mRyzC8CiUe") {
nodes {
space {
id
name
}
}
}
}