Created
September 15, 2024 10:32
-
-
Save GoodnessEzeokafor/3f4129fbef98fcdad9126af53b87d55c to your computer and use it in GitHub Desktop.
Select technique
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const selectFields = [ | |
'id', | |
'currency', | |
'currencyType', | |
'amount', | |
'type', | |
'reference', | |
'description', | |
'status', | |
'user', | |
'appDescription', | |
'createdAt', | |
]; | |
const filterQuery = this.transactionFactory.cleanTransactionQuery({ | |
...payload, | |
}); | |
const { data, pagination } = | |
await this.data.transactions.findAllWithPagination( | |
{ | |
...filterQuery, | |
}, | |
{ | |
selectFields: this.selectFields, | |
}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment