n1ru4l/graphql-live-query

Annotate fields and/or fragments with @live

Open

#458 opened on Mar 4, 2021

 (2 comments) (2 reactions) (0 assignees)TypeScript (34 forks)github user discovery
help wantedideaneeds poc implementation

Repository metrics

Stars
 (439 stars)
PR merge metrics
 (Avg merge 1d 12h) (3 merged PRs in 30d)

Description

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!

Contributor guide