@trulyacerbic/ttt-gamesdb
Version:
Prisma graphql database model definition
217 lines (195 loc) • 4.97 kB
JavaScript
module.exports = {
typeDefs: // Code generated by Prisma (prisma@1.29.2). DO NOT EDIT.
// Please don't change this file manually but run `prisma generate` to update it.
// For more information, please read the docs: https://www.prisma.io/docs/prisma-client/
/* GraphQL */ `type AggregateGameSession {
count: Int!
}
type BatchPayload {
count: Long!
}
type GameSession {
id: ID!
player1: String!
player2: String!
state: String!
board: String!
}
type GameSessionConnection {
pageInfo: PageInfo!
edges: [GameSessionEdge]!
aggregate: AggregateGameSession!
}
input GameSessionCreateInput {
player1: String!
player2: String!
state: String!
board: String!
}
type GameSessionEdge {
node: GameSession!
cursor: String!
}
enum GameSessionOrderByInput {
id_ASC
id_DESC
player1_ASC
player1_DESC
player2_ASC
player2_DESC
state_ASC
state_DESC
board_ASC
board_DESC
createdAt_ASC
createdAt_DESC
updatedAt_ASC
updatedAt_DESC
}
type GameSessionPreviousValues {
id: ID!
player1: String!
player2: String!
state: String!
board: String!
}
type GameSessionSubscriptionPayload {
mutation: MutationType!
node: GameSession
updatedFields: [String!]
previousValues: GameSessionPreviousValues
}
input GameSessionSubscriptionWhereInput {
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: GameSessionWhereInput
AND: [GameSessionSubscriptionWhereInput!]
OR: [GameSessionSubscriptionWhereInput!]
NOT: [GameSessionSubscriptionWhereInput!]
}
input GameSessionUpdateInput {
player1: String
player2: String
state: String
board: String
}
input GameSessionUpdateManyMutationInput {
player1: String
player2: String
state: String
board: String
}
input GameSessionWhereInput {
id: ID
id_not: ID
id_in: [ID!]
id_not_in: [ID!]
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_contains: ID
id_not_contains: ID
id_starts_with: ID
id_not_starts_with: ID
id_ends_with: ID
id_not_ends_with: ID
player1: String
player1_not: String
player1_in: [String!]
player1_not_in: [String!]
player1_lt: String
player1_lte: String
player1_gt: String
player1_gte: String
player1_contains: String
player1_not_contains: String
player1_starts_with: String
player1_not_starts_with: String
player1_ends_with: String
player1_not_ends_with: String
player2: String
player2_not: String
player2_in: [String!]
player2_not_in: [String!]
player2_lt: String
player2_lte: String
player2_gt: String
player2_gte: String
player2_contains: String
player2_not_contains: String
player2_starts_with: String
player2_not_starts_with: String
player2_ends_with: String
player2_not_ends_with: String
state: String
state_not: String
state_in: [String!]
state_not_in: [String!]
state_lt: String
state_lte: String
state_gt: String
state_gte: String
state_contains: String
state_not_contains: String
state_starts_with: String
state_not_starts_with: String
state_ends_with: String
state_not_ends_with: String
board: String
board_not: String
board_in: [String!]
board_not_in: [String!]
board_lt: String
board_lte: String
board_gt: String
board_gte: String
board_contains: String
board_not_contains: String
board_starts_with: String
board_not_starts_with: String
board_ends_with: String
board_not_ends_with: String
AND: [GameSessionWhereInput!]
OR: [GameSessionWhereInput!]
NOT: [GameSessionWhereInput!]
}
input GameSessionWhereUniqueInput {
id: ID
}
scalar Long
type Mutation {
createGameSession(data: GameSessionCreateInput!): GameSession!
updateGameSession(data: GameSessionUpdateInput!, where: GameSessionWhereUniqueInput!): GameSession
updateManyGameSessions(data: GameSessionUpdateManyMutationInput!, where: GameSessionWhereInput): BatchPayload!
upsertGameSession(where: GameSessionWhereUniqueInput!, create: GameSessionCreateInput!, update: GameSessionUpdateInput!): GameSession!
deleteGameSession(where: GameSessionWhereUniqueInput!): GameSession
deleteManyGameSessions(where: GameSessionWhereInput): BatchPayload!
}
enum MutationType {
CREATED
UPDATED
DELETED
}
interface Node {
id: ID!
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type Query {
gameSession(where: GameSessionWhereUniqueInput!): GameSession
gameSessions(where: GameSessionWhereInput, orderBy: GameSessionOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [GameSession]!
gameSessionsConnection(where: GameSessionWhereInput, orderBy: GameSessionOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): GameSessionConnection!
node(id: ID!): Node
}
type Subscription {
gameSession(where: GameSessionSubscriptionWhereInput): GameSessionSubscriptionPayload
}
`
}