egg icon indicating copy to clipboard operation
egg copied to clipboard

关于egg-graphql的 Schema 批量,带有依赖的查询

Open zimo888 opened this issue 8 years ago • 3 comments

https://github.com/facebook/graphql/issues/377

query A {
    hero 
    {
        id @export(as:"droidId")
        name 
        friends  @export(as:"r2d2Friends") 
        {
            name @export(as:"friendNames")
        }
    }
}
        
query B($droidId : String!) {
    droid (id : $droidId ) {
        name
    }
}

我觉得实现一个查询有依赖关系的@export很有意义啊,用directive 能不能实现export 呢?

zimo888 avatar Apr 07 '18 11:04 zimo888

Hello @zimo888. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@zimo888,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

egg-bot avatar Apr 24 '19 06:04 egg-bot

如果 apollo 支持就是支持的

popomore avatar Apr 24 '19 06:04 popomore

This issue is closed because it has been marked as Need Reproduce, but has not had recent activity. If you can provide a reproduce, feel free to ping anyone of our maintainers to reopen this issue. Thank you for your contributions.

egg-bot avatar May 02 '19 16:05 egg-bot