import { PAYMENT_CURRENCY } from 'common/enums' ; import { WalletToBalanceResolver } from 'definitions' ; const resolver = async ( { id } , _ , { dataSources : { paymentService } } ) => { const HKD = await paymentService . calculateBalance ( { userId : id , currency : PAYMENT_CURRENCY . HKD , } ) ; return { HKD , } ; } ; export default resolver ;