How to use try and catch inside datasources api instead in resolvers using graphql and react?

前端 未结 0 1464
暗喜
暗喜 2021-02-11 01:18

i have an api defined under datasources like below

class someAPI extends RESTDataSource {
     async getFirst(id: string): Promise { 
                 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题