Instantly share code, notes, and snippets.

Embed
What would you like to do?
# THIS FILE HAS BEEN AUTO-GENERATED BY "PRISMA DEPLOY"
# DO NOT EDIT THIS FILE DIRECTLY
#
# Model Types
#
type Post implements Node {
id: ID!
title: String!
author(where: UserWhereInput): User!
}
type User implements Node {
id: ID!
name: String!
posts(where: PostWhereInput, orderBy: PostOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Post!]
}
#
# Other Types
#
type AggregatePost {
count: Int!
}
type AggregateUser {
count: Int!
}
type BatchPayload {
count: Long!
}
scalar Long
type Mutation {
createPost(data: PostCreateInput!): Post!
createUser(data: UserCreateInput!): User!
updatePost(data: PostUpdateInput!, where: PostWhereUniqueInput!): Post
updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User
deletePost(where: PostWhereUniqueInput!): Post
deleteUser(where: UserWhereUniqueInput!): User
upsertPost(where: PostWhereUniqueInput!, create: PostCreateInput!, update: PostUpdateInput!): Post!
upsertUser(where: UserWhereUniqueInput!, create: UserCreateInput!, update: UserUpdateInput!): User!
updateManyPosts(data: PostUpdateInput!, where: PostWhereInput!): BatchPayload!
updateManyUsers(data: UserUpdateInput!, where: UserWhereInput!): BatchPayload!
deleteManyPosts(where: PostWhereInput!): BatchPayload!
deleteManyUsers(where: UserWhereInput!): BatchPayload!
}
enum MutationType {
CREATED
UPDATED
DELETED
}
interface Node {
id: ID!
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type PostConnection {
pageInfo: PageInfo!
edges: [PostEdge]!
aggregate: AggregatePost!
}
input PostCreateInput {
title: String!
author: UserCreateOneWithoutPostsInput!
}
input PostCreateManyWithoutAuthorInput {
create: [PostCreateWithoutAuthorInput!]
connect: [PostWhereUniqueInput!]
}
input PostCreateWithoutAuthorInput {
title: String!
}
type PostEdge {
node: Post!
cursor: String!
}
enum PostOrderByInput {
id_ASC
id_DESC
title_ASC
title_DESC
updatedAt_ASC
updatedAt_DESC
createdAt_ASC
createdAt_DESC
}
type PostPreviousValues {
id: ID!
title: String!
}
type PostSubscriptionPayload {
mutation: MutationType!
node: Post
updatedFields: [String!]
previousValues: PostPreviousValues
}
input PostSubscriptionWhereInput {
AND: [PostSubscriptionWhereInput!]
OR: [PostSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: PostWhereInput
}
input PostUpdateInput {
title: String
author: UserUpdateOneWithoutPostsInput
}
input PostUpdateManyWithoutAuthorInput {
create: [PostCreateWithoutAuthorInput!]
connect: [PostWhereUniqueInput!]
disconnect: [PostWhereUniqueInput!]
delete: [PostWhereUniqueInput!]
update: [PostUpdateWithoutAuthorInput!]
upsert: [PostUpsertWithoutAuthorInput!]
}
input PostUpdateWithoutAuthorDataInput {
title: String
}
input PostUpdateWithoutAuthorInput {
where: PostWhereUniqueInput!
data: PostUpdateWithoutAuthorDataInput!
}
input PostUpsertWithoutAuthorInput {
where: PostWhereUniqueInput!
update: PostUpdateWithoutAuthorDataInput!
create: PostCreateWithoutAuthorInput!
}
input PostWhereInput {
AND: [PostWhereInput!]
OR: [PostWhereInput!]
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
title: String
title_not: String
title_in: [String!]
title_not_in: [String!]
title_lt: String
title_lte: String
title_gt: String
title_gte: String
title_contains: String
title_not_contains: String
title_starts_with: String
title_not_starts_with: String
title_ends_with: String
title_not_ends_with: String
author: UserWhereInput
}
input PostWhereUniqueInput {
id: ID
}
type Query {
posts(where: PostWhereInput, orderBy: PostOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Post]!
users(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [User]!
post(where: PostWhereUniqueInput!): Post
user(where: UserWhereUniqueInput!): User
postsConnection(where: PostWhereInput, orderBy: PostOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): PostConnection!
usersConnection(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): UserConnection!
node(id: ID!): Node
}
type Subscription {
post(where: PostSubscriptionWhereInput): PostSubscriptionPayload
user(where: UserSubscriptionWhereInput): UserSubscriptionPayload
}
type UserConnection {
pageInfo: PageInfo!
edges: [UserEdge]!
aggregate: AggregateUser!
}
input UserCreateInput {
name: String!
posts: PostCreateManyWithoutAuthorInput
}
input UserCreateOneWithoutPostsInput {
create: UserCreateWithoutPostsInput
connect: UserWhereUniqueInput
}
input UserCreateWithoutPostsInput {
name: String!
}
type UserEdge {
node: User!
cursor: String!
}
enum UserOrderByInput {
id_ASC
id_DESC
name_ASC
name_DESC
updatedAt_ASC
updatedAt_DESC
createdAt_ASC
createdAt_DESC
}
type UserPreviousValues {
id: ID!
name: String!
}
type UserSubscriptionPayload {
mutation: MutationType!
node: User
updatedFields: [String!]
previousValues: UserPreviousValues
}
input UserSubscriptionWhereInput {
AND: [UserSubscriptionWhereInput!]
OR: [UserSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: UserWhereInput
}
input UserUpdateInput {
name: String
posts: PostUpdateManyWithoutAuthorInput
}
input UserUpdateOneWithoutPostsInput {
create: UserCreateWithoutPostsInput
connect: UserWhereUniqueInput
disconnect: UserWhereUniqueInput
delete: UserWhereUniqueInput
update: UserUpdateWithoutPostsInput
upsert: UserUpsertWithoutPostsInput
}
input UserUpdateWithoutPostsDataInput {
name: String
}
input UserUpdateWithoutPostsInput {
where: UserWhereUniqueInput!
data: UserUpdateWithoutPostsDataInput!
}
input UserUpsertWithoutPostsInput {
where: UserWhereUniqueInput!
update: UserUpdateWithoutPostsDataInput!
create: UserCreateWithoutPostsInput!
}
input UserWhereInput {
AND: [UserWhereInput!]
OR: [UserWhereInput!]
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
name: String
name_not: String
name_in: [String!]
name_not_in: [String!]
name_lt: String
name_lte: String
name_gt: String
name_gte: String
name_contains: String
name_not_contains: String
name_starts_with: String
name_not_starts_with: String
name_ends_with: String
name_not_ends_with: String
posts_every: PostWhereInput
posts_some: PostWhereInput
posts_none: PostWhereInput
}
input UserWhereUniqueInput {
id: ID
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment