使用NestJS中首先生成的GraphQL模式类型

使用NestJS中首先生成的GraphQL模式类型,graphql,nestjs,Graphql,Nestjs,在一个新的示例项目中,我首先使用schema从SDL文件chema.gql生成类型 为查询、突变等生成了一些contractsby接口 导出接口库{ getAllPostskeyword?:字符串,跳过?:数字,接受?:数字:Post[]|承诺; getPostById:string:Post | Promise; authord:string:User | Promise; } 导出接口模拟{ createPostinput:createPostinput:Post |承诺; addComme

在一个新的示例项目中,我首先使用schema从SDL文件chema.gql生成类型

为查询、突变等生成了一些contractsby接口

导出接口库{ getAllPostskeyword?:字符串,跳过?:数字,接受?:数字:Post[]|承诺; getPostById:string:Post | Promise; authord:string:User | Promise; } 导出接口模拟{ createPostinput:createPostinput:Post |承诺; addCommentinput:CommentInput:Comment | Promise; } 导出接口订阅{ 添加注释:注释|承诺; } 但在官方文档中,它们没有用于实现查询、突变、订阅等细节

如果可能,是否使用这些接口来完成Graphql实现工作