Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Donot merge] intro a buggy comment #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 61 additions & 19 deletions todo/data/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,63 +1,103 @@
type Query {
user(id: String): User

"""Fetches an object given its ID"""
"""
Fetches an object given its ID 🐛
"""
node(
"""The ID of an object"""
"""
The ID of an object
"""
id: ID!
): Node
}

type User implements Node {
"""The ID of an object"""
"""
The ID of an object
"""
id: ID!
userId: String!
todos(status: String = "any", after: String, first: Int, before: String, last: Int): TodoConnection
todos(
status: String = "any"
after: String
first: Int
before: String
last: Int
): TodoConnection
totalCount: Int!
completedCount: Int!
}

"""An object with an ID"""
"""
An object with an ID
"""
interface Node {
"""The id of the object."""
"""
The id of the object.
"""
id: ID!
}

"""A connection to a list of items."""
"""
A connection to a list of items.
"""
type TodoConnection {
"""Information to aid in pagination."""
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!

"""A list of edges."""
"""
A list of edges.
"""
edges: [TodoEdge]
}

"""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
}

"""An edge in a connection."""
"""
An edge in a connection.
"""
type TodoEdge {
"""The item at the end of the edge"""
"""
The item at the end of the edge
"""
node: Todo

"""A cursor for use in pagination"""
"""
A cursor for use in pagination
"""
cursor: String!
}

type Todo implements Node {
"""The ID of an object"""
"""
The ID of an object
"""
id: ID!
text: String!
complete: Boolean!
Expand All @@ -67,7 +107,9 @@ type Mutation {
addTodo(input: AddTodoInput!): AddTodoPayload
changeTodoStatus(input: ChangeTodoStatusInput!): ChangeTodoStatusPayload
markAllTodos(input: MarkAllTodosInput!): MarkAllTodosPayload
removeCompletedTodos(input: RemoveCompletedTodosInput!): RemoveCompletedTodosPayload
removeCompletedTodos(
input: RemoveCompletedTodosInput!
): RemoveCompletedTodosPayload
removeTodo(input: RemoveTodoInput!): RemoveTodoPayload
renameTodo(input: RenameTodoInput!): RenameTodoPayload
}
Expand Down