From e027d5ee65aad72ca7cface8e609ea0c65f99fbe Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 5 Apr 2019 01:13:17 +0200 Subject: graphql: make Bug's actors and participants a connection --- graphql/schema/bug.graphql | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'graphql/schema/bug.graphql') diff --git a/graphql/schema/bug.graphql b/graphql/schema/bug.graphql index e294a363..8e058ed7 100644 --- a/graphql/schema/bug.graphql +++ b/graphql/schema/bug.graphql @@ -36,11 +36,34 @@ type Bug { title: String! labels: [Label!]! author: Identity! - actors: [Identity]! - participants: [Identity]! createdAt: Time! lastEdit: Time! + """The actors of the bug. Actors are Identity that have interacted with the bug.""" + actors( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): IdentityConnection! + + """The participants of the bug. Participants are Identity that have created or + added a comment on the bug.""" + participants( + """Returns the elements in the list that come after the specified cursor.""" + after: String + """Returns the elements in the list that come before the specified cursor.""" + before: String + """Returns the first _n_ elements from the list.""" + first: Int + """Returns the last _n_ elements from the list.""" + last: Int + ): IdentityConnection! + comments( """Returns the elements in the list that come after the specified cursor.""" after: String -- cgit