query GetConversationsByEntity(
	$entityType: String!
	$entityId: ID!
	$first: Int
	$after: String
	$last: Int
	$before: String
) {
	getConversationsByEntity(
		entityType: $entityType
		entityId: $entityId
		first: $first
		after: $after
		last: $last
		before: $before
	) {
		edges {
			node {
				id
				subject
				conversationType
				lastMessageAt
				isArchived
				createdAt
				unreadCount
				participants {
					id
					participant {
						teamProfile {
							id
							fullName
						}
						customerProfile {
							id
							fullName
						}
					}
				}
				messages(limit: 1, offset: 0) {
					id
					body
					createdAt
				}
			}
			cursor
		}
		pageInfo {
			hasNextPage
			endCursor
			hasPreviousPage
			startCursor
		}
	}
}
