aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-14 12:40:31 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-14 12:41:59 +0200
commitb478cd1bcb4756b20f7f4b15fcf81f23e1a60a02 (patch)
tree8ce232dcab3dd00708f8ba66c334472457e5980d /graphql/schema.graphql
parenta3fc9abb921f5ce7084d6ab7473442d0b72b1d78 (diff)
downloadgit-bug-b478cd1bcb4756b20f7f4b15fcf81f23e1a60a02.tar.gz
graphql: update gqlgen to 0.5.1
fix #6
Diffstat (limited to 'graphql/schema.graphql')
-rw-r--r--graphql/schema.graphql84
1 files changed, 42 insertions, 42 deletions
diff --git a/graphql/schema.graphql b/graphql/schema.graphql
index 779331c4..733b9f1a 100644
--- a/graphql/schema.graphql
+++ b/graphql/schema.graphql
@@ -2,24 +2,24 @@ scalar Time
scalar Label
scalar Hash
-# Information about pagination in a connection.
+"""Information about pagination in a connection."""
type PageInfo {
- # When paginating forwards, are there more items?
+ """When paginating forwards, are there more items?"""
hasNextPage: Boolean!
- # When paginating backwards, are there more items?
+ """When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!
- # When paginating backwards, the cursor to continue.
+ """When paginating backwards, the cursor to continue."""
startCursor: String!
- # When paginating forwards, the cursor to continue.
+ """When paginating forwards, the cursor to continue."""
endCursor: String!
}
-# Represents an person in a git object.
+"""Represents an person in a git object."""
type Person {
- # The email of the person.
+ """The email of the person."""
email: String
- # The name of the person.
+ """The name of the person."""
name: String
}
@@ -35,15 +35,15 @@ type CommentEdge {
node: Comment!
}
-# Represents a comment on a bug.
+"""Represents a comment on a bug."""
type Comment implements Authored {
- # The author of this comment.
+ """The author of this comment."""
author: Person!
- # The message of this comment.
+ """The message of this comment."""
message: String!
- # All media's hash referenced in this comment
+ """All media's hash referenced in this comment"""
files: [Hash!]!
}
@@ -52,9 +52,9 @@ enum Status {
CLOSED
}
-# An object that has an author.
+"""An object that has an author."""
interface Authored {
- # The author of this object.
+ """The author of this object."""
author: Person!
}
@@ -70,15 +70,15 @@ type OperationEdge {
node: Operation!
}
-# An operation applied to a bug.
+"""An operation applied to a bug."""
interface Operation {
- # The operations author.
+ """The operations author."""
author: Person!
- # The datetime when this operation was issued.
+ """The datetime when this operation was issued."""
date: Time!
}
-type CreateOperation implements Operation, Authored {
+type CreateOperation implements Operation & Authored {
author: Person!
date: Time!
@@ -87,7 +87,7 @@ type CreateOperation implements Operation, Authored {
files: [Hash!]!
}
-type SetTitleOperation implements Operation, Authored {
+type SetTitleOperation implements Operation & Authored {
author: Person!
date: Time!
@@ -95,7 +95,7 @@ type SetTitleOperation implements Operation, Authored {
was: String!
}
-type AddCommentOperation implements Operation, Authored {
+type AddCommentOperation implements Operation & Authored {
author: Person!
date: Time!
@@ -103,14 +103,14 @@ type AddCommentOperation implements Operation, Authored {
files: [Hash!]!
}
-type SetStatusOperation implements Operation, Authored {
+type SetStatusOperation implements Operation & Authored {
author: Person!
date: Time!
status: Status!
}
-type LabelChangeOperation implements Operation, Authored {
+type LabelChangeOperation implements Operation & Authored {
author: Person!
date: Time!
@@ -118,22 +118,22 @@ type LabelChangeOperation implements Operation, Authored {
removed: [Label!]!
}
-# The connection type for Bug.
+"""The connection type for Bug."""
type BugConnection {
- # A list of edges.
+ """A list of edges."""
edges: [BugEdge!]!
nodes: [Bug!]!
- # Information to aid in pagination.
+ """Information to aid in pagination."""
pageInfo: PageInfo!
- # Identifies the total count of items in the connection.
+ """Identifies the total count of items in the connection."""
totalCount: Int!
}
-# An edge in a connection.
+"""An edge in a connection."""
type BugEdge {
- # A cursor for use in pagination.
+ """A cursor for use in pagination."""
cursor: String!
- # The item at the end of the edge.
+ """The item at the end of the edge."""
node: Bug!
}
@@ -148,39 +148,39 @@ type Bug {
lastEdit: Time!
comments(
- # Returns the elements in the list that come after the specified cursor.
+ """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.
+ """Returns the elements in the list that come before the specified cursor."""
before: String
- # Returns the first _n_ elements from the list.
+ """Returns the first _n_ elements from the list."""
first: Int
- # Returns the last _n_ elements from the list.
+ """Returns the last _n_ elements from the list."""
last: Int
): CommentConnection!
operations(
- # Returns the elements in the list that come after the specified cursor.
+ """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.
+ """Returns the elements in the list that come before the specified cursor."""
before: String
- # Returns the first _n_ elements from the list.
+ """Returns the first _n_ elements from the list."""
first: Int
- # Returns the last _n_ elements from the list.
+ """Returns the last _n_ elements from the list."""
last: Int
): OperationConnection!
}
type Repository {
allBugs(
- # Returns the elements in the list that come after the specified cursor.
+ """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.
+ """Returns the elements in the list that come before the specified cursor."""
before: String
- # Returns the first _n_ elements from the list.
+ """Returns the first _n_ elements from the list."""
first: Int
- # Returns the last _n_ elements from the list.
+ """Returns the last _n_ elements from the list."""
last: Int
- # A query to select and order bugs
+ """A query to select and order bugs"""
query: String
): BugConnection!
bug(prefix: String!): Bug