Skip to main content

ISSUE_DETAIL

Constant ISSUE_DETAIL 

Source
pub const ISSUE_DETAIL: &str = "query($id:String!,$last:Int,$before:String){ issue(id:$id){ id identifier title description descriptionState url createdAt updatedAt archivedAt state{name type} priority labels{nodes{id name color}} project{id} comments(last:$last,before:$before){ nodes{id body url createdAt updatedAt user{displayName}} pageInfo{hasPreviousPage startCursor} } } }";
Expand description

One issue and one page of its comments, in one request: ISSUE’s selection and ISSUE_COMMENTS’s connection on one issue(id:) field.

What a copy reads a task with when it carries its comments: one request answers both where the comments fit one page, and every further page through this same read carries the issue beside it, so the copy can tell the issue changed between two of them.