Packages

SDK for the Plain.com GraphQL API

Current section

Files

Jump to
plain queries getCustomerById.graphql
Raw

queries/getCustomerById.graphql

query ($customerId: ID!) {
customer(customerId: $customerId) {
id
externalId
fullName
shortName
email {
email
isVerified
verifiedAt {
unixTimestamp
}
}
avatarUrl
assignedToUser {
userId
}
assignedAt {
unixTimestamp
}
company {
id
}
createdBy {
__typename
... on UserActor {
userId
}
... on SystemActor {
systemId
}
... on MachineUserActor {
machineUserId
}
}
createdAt {
unixTimestamp
}
updatedBy {
__typename
... on UserActor {
userId
}
... on SystemActor {
systemId
}
... on MachineUserActor {
machineUserId
}
}
updatedAt {
unixTimestamp
}
markedAsSpamBy {
__typename
... on UserActor {
userId
}
... on SystemActor {
systemId
}
... on MachineUserActor {
machineUserId
}
}
markedAsSpamAt {
unixTimestamp
}
}
}