n1ru4l/graphql-live-query

Annotate fields and/or fragments with @live

开放

#458 创建于 2021年3月4日

 (2 条评论) (2 个反应) (0 位负责人)TypeScript (34 个派生)github user discovery
help wantedideaneeds poc implementation

仓库指标

星标
 (439 个星标)
PR 合并指标
 (平均合并 1天 12小时) (30 天内合并 3 个 PR)

描述

Can't believe it has been nearly 5 years since this video https://www.youtube.com/watch?t=1090&v=ViXL0YQnioU where Lee Byron presents the idea of the @live directive.

{
  feed {
    stories {
      author { name }
      message
      likeCount @live
    }
  }
}

Really cool to follow your progress on live queries, but I've been wondering why you went with the approach of annotating the entire query vs being able to annotate the individual fields or fragments?

Are you planning, at some point, to support @live per field or fragment, or what is the rationale of annotating the whole query?

Keep up the great work!

贡献者指南