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

前端 未结 0 449
鱼传尺愫
鱼传尺愫 2021-02-11 01:02

i have an api defined under datasources like below

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


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