diff options
author | Michael Muré <batolettre@gmail.com> | 2019-04-05 01:13:17 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-04-05 01:13:17 +0200 |
commit | e027d5ee65aad72ca7cface8e609ea0c65f99fbe (patch) | |
tree | 3b67170e86c4158dd2dd4f23f3013641505dac35 /graphql/schema | |
parent | b9e413c5f95212a0076aae0f473226b32b5fc77a (diff) | |
download | git-bug-e027d5ee65aad72ca7cface8e609ea0c65f99fbe.tar.gz |
graphql: make Bug's actors and participants a connection
Diffstat (limited to 'graphql/schema')
-rw-r--r-- | graphql/schema/bug.graphql | 27 |
1 files changed, 25 insertions, 2 deletions
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 |