Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Annotations #19

Open
He-Pin opened this issue Mar 2, 2024 · 0 comments
Open

External Annotations #19

He-Pin opened this issue Mar 2, 2024 · 0 comments
Labels
Milestone

Comments

@He-Pin
Copy link
Contributor

He-Pin commented Mar 2, 2024

一些建议,除了常见的 annotations, 如 #18 外:

name description
@MountAt @MountAt("./family") 这样可以用来重新组织结构
@GQLResolver 提供一个resolver,用于获取值
@GQLNullable 允许java字段为空,默认非空,除非使用Optional
@GQLIdentity N+1 批量的时候需要,标记是无状态的,可以跨请求合并
@GQLField 标识为GraphQL Field
@GQLExport 自动导出一个类的所有get方法
@CoEval 标识可以直接求值
@BatchedAlia 标识对应的批量方法,N+1用
@MaxParallelism N+1并行度
@MaxBatchedParallelism N+1批量并行度
@MaxBatchSize N+1归组大小
@jxnu-liguobin jxnu-liguobin changed the title Java Annotations External Annotations Mar 2, 2024
@jxnu-liguobin jxnu-liguobin added this to the Backlog milestone Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants