The input fields to query a list of messages.
Fields
conversationId ● ID!non-null
Conversation ID, which is returned by successfully calling the conversationCreate mutation.
pageSize ● Int
Page size.
Default value: 10
messageId ● ID
Message ID acting as a pagination cursor in conjunction with createAt. When createAt values are identical, this field is used to retrieve messages with IDs greater than or less than this value.
createAt ● Date
Message creation time. Format: ISO-8601. If this field is not passed in, query is perfomed based on the current time.
direction ● String
Query direction. Valid values are:
  • up: Queries messages whose IDs are greater than the current messageId or those created later than the current createAt.
  • down: Queries messages whose IDs are less than the current messageId or those created earlier than the current createAt.
Map
Argument from
MessageQueryInput
Was this article helpful to you?