【发布时间】:2020-06-07 21:08:06
【问题描述】:
是否可以使用现有接口构建 graphql 查询? 或者我们应该写两次相同的代码)
interface Post {
id: string;
title: string;
...
然后在查询中写入相同的字段
query allPosts {
posts {
id
title
...
有没有办法写出类似的东西
query allPosts {
posts: Post[]
【问题讨论】:
标签: angular graphql apollo apollo-angular