Skip to main content

Condition

A folder condition provides the logic for matching relevant conversations.

For example, to match conversations with the "suggestion" tag:

  1. param: TAG
  2. operator: CONTAINS
  3. value: "suggestion"

To fetch all folders and their conditions:

query Folders {
folders {
edges {
node {
conditions {
edges {
node {
id
param
operator
value
}
}
pageInfo {
hasNextPage
}
}
createdAt
id
matchType
name
updatedAt
}
}
}
}
type Condition implements Node, Timestamped {
createdAt: DateTime!
id: ID!
operator: ConditionOperator!
param: ConditionParam!
source: ConditionSourceUnion
updatedAt: DateTime!
value: String
}

Fields

Condition.createdAt ● DateTime! non-null scalar common

The date and time that the object was created.

Condition.id ● ID! non-null scalar common

Condition.operator ● ConditionOperator! non-null enum common

The logic operator to use, for example EQ.

Condition.param ● ConditionParam! non-null enum common

The conversation field to use, for example STARRED.

Condition.source ● ConditionSourceUnion union common

The source for the condition. No value indicates the conversation as the source.

Condition.updatedAt ● DateTime! non-null scalar common

The date and time that the object was last updated.

Condition.value ● String scalar common

The value to match against, for example true.

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

ConditionConnection object ● ConditionEdge object