client objects are not generated when schema is used

未关闭
#771 9 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
graphql, kotlin

调研方向

首先使用 schema.graphql 示例复现该问题,并参考报告中链接的 GraphQL schema 文档作为上下文。将生成的输出与 target/generated-sources/com/test/shopify/generated/client/ 下缺失的六个路径进行比较。当 schema 使用 schema { query: QueryRoot } 和 QueryRoot @extends 时能够生成这些客户端投影和查询文件,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Per: https://graphql.org/learn/schema/
image

if schema.graphql contains:
schema {
query: QueryRoot
}

type QueryRoot @extends {
ticks(first: Int, after: Int, allowCached: Boolean): TicksConnection
}

Then the following files are not generated:
./target/generated-sources/com/test/shopify/generated/client/TicksProjectionRoot.java
./target/generated-sources/com/test/shopify/generated/client/RouteProjection.java
./target/generated-sources/com/test/shopify/generated/client/TicksGraphQLQuery.java
./target/generated-sources/com/test/shopify/generated/client/TickProjection.java
./target/generated-sources/com/test/shopify/generated/client/VotesProjection.java
./target/generated-sources/com/test/shopify/generated/client/TickEdgeProjection.java

主要语言
Kotlin
星标
220
派生
123
平均合并
1 天 6 小时
30 天内合并 PR
23

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Netflix/dgs-codegen 的其他 Issue

查看 Netflix/dgs-codegen 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。