查询做一些类似的事情(下面是更完整的工作版本): let ShowUsers = () => { if (criteria === undefined) { }) }
} 但是我一直在Property 'then' does not exist on type 'void'上收到一个错误 编辑: 没有.then和.catch,我的代码就能正
我是GraphQL世界中的新人,我试图找到一种拥有多个查询类型或如何将查询类型拆分为多个文件的方法。我使用热巧克力作为Asp.Net核心,一切看起来都很好,而且工作正常。但是,如果我需要将几个查询合并到一个GraphQL API中呢?一些不相关的东西,f.e。DogsQuery和CarsQuery.在Asp.Net中,我写的类似于:
public void ConfigureServices(IServiceCollection se
我正在使用GraphQL,在代码中的这一点上,我有一个GraphQLError对象,它有一个名为extensions的属性,该属性的类型为void | { [key: string]: any; }。not exist on type 'void | { [key: string]: any; }'.Property 'code' does not exist on type 'void</em
我能够用“post blog”函数成功地实现这一点,该函数位于“post-dashboard.Component.ts”中,现在我正尝试使用'delete user’函数执行相同的操作,但编译器返回错误“属性'id‘不存在于类型'void'”。/student-user/student-user.component.ts(87,23): error TS2339: Property 'id' does not exist on type