我正在使用"graphql-import": "^0.7.1" 我尝试将@cacheControl指令添加到我的graphql架构中 type Post @cacheControl(maxAge: 240title: String votes: Int @cacheControl(maxAge: 30)
readByCurrentUser: Boolean!@cacheContro
我正在尝试设置我的服务器端后端,我遇到了这个错误: node_modules/apollo-cache-control/dist/index.d.ts:24:9 - error TS2717: SubsequentProperty 'cacheControl' must be of type 'ResolveInfoCacheControl', but here has type '{ setCacheHint:(hint: CacheHint) => v
我正在开发一个在14.6.0上运行良好的应用程序,但是在将graphql升级到15.0.0时会抛出一个错误消息。graphql文件的明文内容组成(应用程序正在做不同的事情,所以我在逻辑上将模式划分为多个files).merge是在所有resolverObjects.上进行深度合并的lodash函数)。typeDefs中的第一个模式是一个虚拟的“基本”模式: _dummy: String
type Mutation
因此,我想使用阿波罗客户端反应钩子"useQuery“来查询运行阿波罗服务器的graphql后端。{ InMemoryCache } from 'apollo-cache-inmemory';import} from 'react-apollo';
import { createUploadLink } from 'apollo