Full Viewer Query
Query: Viewer
This query retrieves information about the viewer, including user details, account details, and supporting documents.
Input Variables:
$filterBy: SupportingDocumentTypes
: A filter parameter for supporting documents. You can use this to filter documents by type.
GraphQLInput VariableSample Response
query ViewerQuery($supportingDocumentFilter: SupportingDocumentTypes) {
viewer {
id
me {
...UserDetails
userMetadata {
...UserMetadataDetails
}
bvnStatus {
image
}
supportingDocument(filterBy: $supportingDocumentFilter) {
...SupportingDocument
}
}
account {
...AccountDetails
loans: portfolios(orderBy: createdAt_DESC) {
nodes {
...AccountPortfolio
}
}
applications(orderBy: createdAt_DESC) {
nodes {
...AccountApplication
loan: portfolio {
...AccountPortfolio
}
}
}
bankAccounts {
id
bank {