Skip to main content

Team

A team is a group of zero or more agents.

To find all teams on your account along with the associated agents:

query Teams {
teams {
nodes {
agents {
nodes {
id
}
pageInfo {
hasNextPage
}
}
createdAt
id
description
name
updatedAt
}
}
}

By default team results are sorted by name. To sort by when they were created:

query Teams {
teams( orderBy: { field: CREATED_AT, direction: ASC } ) {
nodes {
id
name
}
}
}

To order teams by largest first:

query Teams {
teams( orderBy: { field: SIZE, direction: DESC } ) {
nodes {
id
name
}
}
}
type Team implements Node, Timestamped {
agents(
after: String
before: String
filter: AgentFilter
first: Int
last: Int
orderBy: AgentOrder
): AgentConnection
createdAt: DateTime!
description: String
id: ID!
name: String!
updatedAt: DateTime!
}

Fields​

Team.agents ● AgentConnection object common​

Lists all agents in the organization.

Team.agents.after ● String scalar common​

Returns the elements in the list that come after the specified cursor.

Team.agents.before ● String scalar common​

Returns the elements in the list that come before the specified cursor.

Team.agents.filter ● AgentFilter input common​

The fields by which to filter the results.

Team.agents.first ● Int scalar common​

Returns the first n elements from the list.

Team.agents.last ● Int scalar common​

Returns the last n elements from the list.

Team.agents.orderBy ● AgentOrder input common​

The field and direction by which to order the results.

Team.createdAt ● DateTime! non-null scalar common​

The date and time that the object was created.

Team.description ● String scalar common​

A description of the team.

Team.id ● ID! non-null scalar common​

Team.name ● String! non-null scalar common​

The name of the team.

Team.updatedAt ● DateTime! non-null scalar common​

The date and time that the object was last updated.

Interfaces​

Node interface common​

An object with an ID.

Timestamped interface common​

An object with timestamp fields for when it was created and last updated.

Member of​

Assignment object ● Restriction object ● TeamChanged object ● TeamConnection object ● TeamEdge object ● teamsCreatePayload object ● teamsDestroyPayload object ● teamsUpdatePayload object