Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
267 lines (192 sloc) 5.79 KB
enum _ModelMutationType {
CREATED
UPDATED
DELETED
}
# Meta information about the query.
type _QueryMeta {
count: Int!
}
input CreateUser {
name: String!
}
type Mutation {
updateUser(id: ID!, name: String): User
updateOrCreateUser(update: UpdateUser!, create: CreateUser!): User
deleteUser(id: ID!): User
createUser(name: String!): User
}
# An object with an ID
interface Node {
# The id of the object.
id: ID!
}
type Query {
allUsers(filter: UserFilter, orderBy: UserOrderBy, skip: Int, after: String, before: String, first: Int, last: Int): [User!]!
_allUsersMeta(filter: UserFilter, orderBy: UserOrderBy, skip: Int, after: String, before: String, first: Int, last: Int): _QueryMeta!
User(id: ID): User
user: User
# Fetches an object given its ID
node(
# The ID of an object
id: ID!
): Node
}
type Subscription {
User(filter: UserSubscriptionFilter): UserSubscriptionPayload
}
input UpdateUser {
id: ID!
name: String
}
type User implements Node {
id: ID!
name: String!
}
input UserFilter {
# Logical AND on all given filters.
AND: [UserFilter!]
# Logical OR on all given filters.
OR: [UserFilter!]
id: ID
# All values that are not equal to given value.
id_not: ID
# All values that are contained in given list.
id_in: [ID!]
# All values that are not contained in given list.
id_not_in: [ID!]
# All values less than the given value.
id_lt: ID
# All values less than or equal the given value.
id_lte: ID
# All values greater than the given value.
id_gt: ID
# All values greater than or equal the given value.
id_gte: ID
# All values containing the given string.
id_contains: ID
# All values not containing the given string.
id_not_contains: ID
# All values starting with the given string.
id_starts_with: ID
# All values not starting with the given string.
id_not_starts_with: ID
# All values ending with the given string.
id_ends_with: ID
# All values not ending with the given string.
id_not_ends_with: ID
name: String
# All values that are not equal to given value.
name_not: String
# All values that are contained in given list.
name_in: [String!]
# All values that are not contained in given list.
name_not_in: [String!]
# All values less than the given value.
name_lt: String
# All values less than or equal the given value.
name_lte: String
# All values greater than the given value.
name_gt: String
# All values greater than or equal the given value.
name_gte: String
# All values containing the given string.
name_contains: String
# All values not containing the given string.
name_not_contains: String
# All values starting with the given string.
name_starts_with: String
# All values not starting with the given string.
name_not_starts_with: String
# All values ending with the given string.
name_ends_with: String
# All values not ending with the given string.
name_not_ends_with: String
}
enum UserOrderBy {
id_ASC
id_DESC
name_ASC
name_DESC
}
type UserPreviousValues {
id: ID!
name: String!
}
input UserSubscriptionFilter {
# Logical AND on all given filters.
AND: [UserSubscriptionFilter!]
# Logical OR on all given filters.
OR: [UserSubscriptionFilter!]
# The subscription event gets dispatched when it's listed in mutation_in
mutation_in: [_ModelMutationType!]
# The subscription event gets only dispatched when one of the updated fields names is included in this list
updatedFields_contains: String
# The subscription event gets only dispatched when all of the field names included in this list have been updated
updatedFields_contains_every: [String!]
# The subscription event gets only dispatched when some of the field names included in this list have been updated
updatedFields_contains_some: [String!]
node: UserSubscriptionFilterNode
}
input UserSubscriptionFilterNode {
id: ID
# All values that are not equal to given value.
id_not: ID
# All values that are contained in given list.
id_in: [ID!]
# All values that are not contained in given list.
id_not_in: [ID!]
# All values less than the given value.
id_lt: ID
# All values less than or equal the given value.
id_lte: ID
# All values greater than the given value.
id_gt: ID
# All values greater than or equal the given value.
id_gte: ID
# All values containing the given string.
id_contains: ID
# All values not containing the given string.
id_not_contains: ID
# All values starting with the given string.
id_starts_with: ID
# All values not starting with the given string.
id_not_starts_with: ID
# All values ending with the given string.
id_ends_with: ID
# All values not ending with the given string.
id_not_ends_with: ID
name: String
# All values that are not equal to given value.
name_not: String
# All values that are contained in given list.
name_in: [String!]
# All values that are not contained in given list.
name_not_in: [String!]
# All values less than the given value.
name_lt: String
# All values less than or equal the given value.
name_lte: String
# All values greater than the given value.
name_gt: String
# All values greater than or equal the given value.
name_gte: String
# All values containing the given string.
name_contains: String
# All values not containing the given string.
name_not_contains: String
# All values starting with the given string.
name_starts_with: String
# All values not starting with the given string.
name_not_starts_with: String
# All values ending with the given string.
name_ends_with: String
# All values not ending with the given string.
name_not_ends_with: String
}
type UserSubscriptionPayload {
mutation: _ModelMutationType!
node: User
updatedFields: [String!]
previousValues: UserPreviousValues
}