我正在尝试将aws-appsync与nextjs应用程序连接起来。我不知道如何有效地做到这一点。
我尝试在github上的下一个js示例中使用apollo示例,但没有成功。我被搞糊涂了,因为appsync在其文档中的示例中没有使用内存缓存。
任何帮助都将不胜感激。
发布于 2018-02-21 08:49:38
你能把Apollo和Next一起使用吗?如果是,那么可以尝试通过将disableOffline设置为true来禁用亚马逊网络服务AppSync客户端的离线功能:
const client = new AWSAppSyncClient({
disableOffline: true,
url: appSyncConfig.graphqlEndpoint,
region: appSyncConfig.region,
auth: {
type: appSyncConfig.authenticationType,
apiKey: appSyncConfig.apiKey,
}
});https://stackoverflow.com/questions/48867632
复制相似问题