cost 275 ms
Apollo GraphQL 从 v1 - 2 迁移 - Apollo GraphQL migration from v1 - 2

我正在尝试从 v1.3.3 -> 2.5.4 更新我的 Apollo 实现。 我遵循了非常简单的迁移指南,但是每当我这样做时,都会出现以下错误。 似乎与某些 android/java 文件存在某种冲突。 我已经多次阅读简短的设置文档,看不出我的实现与示例有什么不同。 有人知道这件事吗? 我的应 ...

android.system.ErrnoException: open failed: ENOENT (No such file or directory), 该文件存在于同名路径中 - android.system.ErrnoException: open failed: ENOENT (No such file or directory), the file exists in the path with the name

我正在尝试将图像发送到我的 apollo-graphql 服务器,但出现以下错误: android.system.ErrnoException:打开失败:ENOENT(没有那个文件或目录) 这是安卓代码: 图片路径: /document/1804-2E16:DCIM/defi ...

apollo-android 对 express-graphql 的请求总是导致 http 400 - apollo-android requests to express-graphql always result in http 400

当通过 apollo-graphql 提交到 express-graphql webapp 时,我在让最基本的 graphQL 工作时遇到问题。 通过graphiql 的网络请求,一切正常。 一旦我尝试使用 apollo-android 客户端,无论我尝试什么,我都会收到 400 个错误。 我的安 ...

GraphQL [Apollo-Android]:两个`.watcher().enqueueAndWatch`创建无限刷新循环 - GraphQL [Apollo-Android]: two `.watcher().enqueueAndWatch` creating infinite refresh loop

我正在使用enqueueAndWatch从我的服务器请求“帖子”列表,它导致无限刷新循环。 两个查询如下: 视图 model 已初始化,当我从帖子片段调用refreshPosts()时发生无限循环: 提前致谢! ...

使用架构组件等待未决实时数据的最佳方法 - Best approach to waiting on pending live data using architecture components

我正在开发一个通过 apollo-android 从 graphql 服务器获取数据的应用程序。 我对我的 aws rds 数据库进行了一次提取。 我在我的 CalendarFragment 的onCreate()处执行此操作。 问题是,在onViewCreated() ,我想将我的 textvie ...

无法从 Kotlin 中生成的 Apollo 类构建查询(.builder() 不存在) - Cannot build a query from generated Apollo class in Kotlin (.builder() is absent)

我无法构建由 Android Apollo 库生成的查询。 我有以下 .gpaphql 文件: 它为此生成了一个 Kotlin 请求文件: 生成的 LogInMutation 类没有 .builder() 方法,它是一个数据类。 如何从此请求创建 Query 类的实例,以便能够将其用作 A ...

为什么即使在 gradle 中添加自定义映射后,Apollo-android 也不生成自定义类型? - Why Apollo-android is not generating custom types even after adding custom mapping in the gradle?

我在 Android 中实现自定义类型的步骤我在应用程序的 gradle 文件中添加了 customTypeMapping。 还创建了一个 customtype 适配器。 问题接下来我试图将它添加到我必须传递 customtype 和适配器的 apollo 客户端,但问题是我没有得到任何我正在生成 ...

com.apollographql.apollo.exception.ApolloParseException:无法解析 http 响应 - com.apollographql.apollo.exception.ApolloParseException: Failed to parse http response

对于特定的配置文件查询,我收到“无法解析 http 响应”异常。 从日志中可以看出,数据已成功读取,响应为 200 OK,但控制转到查询的 onFailure。 在此查询之前,程序成功运行突变,没有任何问题。 只有 Profile 查询会发出异常。 这个查询也在服务器上运行良好。 日志:2019-0 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM