Query
query ChatApp($chatAppId: ID!) {
chatApp(chatAppId: $chatAppId) {
id
name
logo {
id
fileName
fileSize {
bytes
kiloBytes
megaBytes
}
fileExtension
fileMimeType
visibility
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
}
}Variables
{
"chatAppId": "id"
}Response
{
"data": {
"chatApp": {
"id": "id",
"name": "string",
"logo": {
"id": "id",
"fileName": "string",
"fileSize": {
"bytes": 1,
"kiloBytes": 1.5,
"megaBytes": 1.5
},
"fileExtension": "string",
"fileMimeType": "string",
"visibility": "PRIVATE"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
}
}
}Queries
chatApp
Fetch a single chat app by its ID. Returns null if no chat app with that ID exists in the workspace.
Requires the chatApp:read permission.
QUERY
chatApp(chatAppId: ID!): ChatAppArguments
chatAppId
ID!
required
Returns
id
ID!
name
String!
logo
An optional image used to represent this chat app in the Plain UI.
createdAt
createdBy
updatedAt
updatedBy
Query
query ChatApp($chatAppId: ID!) {
chatApp(chatAppId: $chatAppId) {
id
name
logo {
id
fileName
fileSize {
bytes
kiloBytes
megaBytes
}
fileExtension
fileMimeType
visibility
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
}
}Variables
{
"chatAppId": "id"
}Response
{
"data": {
"chatApp": {
"id": "id",
"name": "string",
"logo": {
"id": "id",
"fileName": "string",
"fileSize": {
"bytes": 1,
"kiloBytes": 1.5,
"megaBytes": 1.5
},
"fileExtension": "string",
"fileMimeType": "string",
"visibility": "PRIVATE"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
}
}
}Was this page helpful?

