Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
scottdomes Auto update collection 5a29556 Jan 20, 2019
0 contributors

Users who have contributed to this file

104 lines (89 sloc) 1.42 KB
input ContactInput {
name: String!
email: String
}
type CreateContactPayload {
contactEdge: ContactEdge
}
type Mutation {
createContact(input: ContactInput!): CreateContactPayload
}
"""
An object with an ID
"""
interface Node {
"""
The id of the object.
"""
id: ID!
}
type Query {
"""
Fetches an object given its ID
"""
node(
"""
The ID of an object
"""
id: ID!
): Node
viewer: Viewer
}
type Contact implements Node {
id: ID!
name: String!
email: String
}
"""
Information about pagination in a connection.
"""
type PageInfo {
"""
When paginating forwards, are there more items?
"""
hasNextPage: Boolean!
"""
When paginating backwards, are there more items?
"""
hasPreviousPage: Boolean!
"""
When paginating backwards, the cursor to continue.
"""
startCursor: String
"""
When paginating forwards, the cursor to continue.
"""
endCursor: String
}
"""
An edge in a connection.
"""
type ContactEdge {
"""
The item at the end of the edge
"""
node: Contact
"""
A cursor for use in pagination
"""
cursor: String!
}
"""
A connection to a list of items.
"""
type ContactConnection {
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""
A list of edges.
"""
edges: [ContactEdge]
}
type Viewer implements Node {
id: ID!
allContacts(first: Int, last: Int): ContactConnection
totalCount: Int
completedCount: Int
}
You can’t perform that action at this time.