Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type AggregateComment {
- count(
- where: CommentWhereInput
- orderBy: CommentOrderByInput
- skip: Int
- after: CommentWhereUniqueInput
- before: CommentWhereUniqueInput
- first: Int
- last: Int
- ): Int!
- }
- type AggregatePost {
- count(
- where: PostWhereInput
- orderBy: PostOrderByInput
- skip: Int
- after: PostWhereUniqueInput
- before: PostWhereUniqueInput
- first: Int
- last: Int
- ): Int!
- }
- type BatchPayload {
- count: Int!
- }
- type Comment {
- id: String!
- content: String!
- createdAt: DateTime!
- Post: Post
- postId: String
- }
- input CommentCreateInput {
- id: String
- content: String!
- createdAt: DateTime
- Post: PostCreateOneWithoutCommentsInput
- }
- input CommentCreateManyWithoutPostInput {
- create: CommentCreateWithoutPostInput
- connect: CommentWhereUniqueInput
- }
- input CommentCreateWithoutPostInput {
- id: String
- content: String!
- createdAt: DateTime
- }
- enum CommentOrderByInput {
- id_ASC
- id_DESC
- content_ASC
- content_DESC
- createdAt_ASC
- createdAt_DESC
- postId_ASC
- postId_DESC
- }
- input CommentScalarWhereInput {
- AND: CommentScalarWhereInput
- OR: CommentScalarWhereInput
- NOT: CommentScalarWhereInput
- id: String
- id_not: String
- id_in: String
- id_not_in: String
- id_lt: String
- id_lte: String
- id_gt: String
- id_gte: String
- id_contains: String
- id_not_contains: String
- id_starts_with: String
- id_not_starts_with: String
- id_ends_with: String
- id_not_ends_with: String
- content: String
- content_not: String
- content_in: String
- content_not_in: String
- content_lt: String
- content_lte: String
- content_gt: String
- content_gte: String
- content_contains: String
- content_not_contains: String
- content_starts_with: String
- content_not_starts_with: String
- content_ends_with: String
- content_not_ends_with: String
- createdAt: DateTime
- createdAt_not: DateTime
- createdAt_in: DateTime
- createdAt_not_in: DateTime
- createdAt_lt: DateTime
- createdAt_lte: DateTime
- createdAt_gt: DateTime
- createdAt_gte: DateTime
- postId: String
- postId_not: String
- postId_in: String
- postId_not_in: String
- postId_lt: String
- postId_lte: String
- postId_gt: String
- postId_gte: String
- postId_contains: String
- postId_not_contains: String
- postId_starts_with: String
- postId_not_starts_with: String
- postId_ends_with: String
- postId_not_ends_with: String
- }
- input CommentUpdateInput {
- id: String
- content: String
- createdAt: DateTime
- Post: PostUpdateOneWithoutCommentsInput
- }
- input CommentUpdateManyDataInput {
- id: String
- content: String
- createdAt: DateTime
- }
- input CommentUpdateManyMutationInput {
- id: String
- content: String
- createdAt: DateTime
- }
- input CommentUpdateManyWithoutPostInput {
- create: CommentCreateWithoutPostInput
- connect: CommentWhereUniqueInput
- set: CommentWhereUniqueInput
- disconnect: CommentWhereUniqueInput
- delete: CommentWhereUniqueInput
- update: CommentUpdateWithWhereUniqueWithoutPostInput
- updateMany: CommentUpdateManyWithWhereNestedInput
- deleteMany: CommentScalarWhereInput
- upsert: CommentUpsertWithWhereUniqueWithoutPostInput
- }
- input CommentUpdateManyWithWhereNestedInput {
- where: CommentScalarWhereInput!
- data: CommentUpdateManyDataInput!
- }
- input CommentUpdateWithoutPostDataInput {
- id: String
- content: String
- createdAt: DateTime
- }
- input CommentUpdateWithWhereUniqueWithoutPostInput {
- where: CommentWhereUniqueInput!
- data: CommentUpdateWithoutPostDataInput!
- }
- input CommentUpsertWithWhereUniqueWithoutPostInput {
- where: CommentWhereUniqueInput!
- update: CommentUpdateWithoutPostDataInput!
- create: CommentCreateWithoutPostInput!
- }
- input CommentWhereInput {
- AND: CommentWhereInput
- OR: CommentWhereInput
- NOT: CommentWhereInput
- id: String
- id_not: String
- id_in: String
- id_not_in: String
- id_lt: String
- id_lte: String
- id_gt: String
- id_gte: String
- id_contains: String
- id_not_contains: String
- id_starts_with: String
- id_not_starts_with: String
- id_ends_with: String
- id_not_ends_with: String
- content: String
- content_not: String
- content_in: String
- content_not_in: String
- content_lt: String
- content_lte: String
- content_gt: String
- content_gte: String
- content_contains: String
- content_not_contains: String
- content_starts_with: String
- content_not_starts_with: String
- content_ends_with: String
- content_not_ends_with: String
- createdAt: DateTime
- createdAt_not: DateTime
- createdAt_in: DateTime
- createdAt_not_in: DateTime
- createdAt_lt: DateTime
- createdAt_lte: DateTime
- createdAt_gt: DateTime
- createdAt_gte: DateTime
- postId: String
- postId_not: String
- postId_in: String
- postId_not_in: String
- postId_lt: String
- postId_lte: String
- postId_gt: String
- postId_gte: String
- postId_contains: String
- postId_not_contains: String
- postId_starts_with: String
- postId_not_starts_with: String
- postId_ends_with: String
- postId_not_ends_with: String
- Post: PostWhereInput
- }
- input CommentWhereUniqueInput {
- id: String
- }
- input CreateCommentInput {
- content: String!
- postId: String
- }
- input CreatePostInput {
- title: String!
- body: String!
- }
- # A date string, such as 2007-12-03, compliant with the `full-date` format
- # outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for
- # representation of dates and times using the Gregorian calendar.
- scalar Date
- # A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
- # `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
- # 8601 standard for representation of dates and times using the Gregorian calendar.
- scalar DateTime
- scalar Json
- type Mutation {
- createComment(input: CreateCommentInput!): Comment!
- updateComment(id: String!, input: UpdateCommentInput!): Comment!
- deleteComment(id: String!): Comment!
- createOnePost(data: PostCreateInput!): Post!
- deleteOnePost(where: PostWhereUniqueInput!): Post
- updateOnePost(data: PostUpdateInput!, where: PostWhereUniqueInput!): Post
- upsertOnePost(
- where: PostWhereUniqueInput!
- create: PostCreateInput!
- update: PostUpdateInput!
- ): Post!
- updateManyPost(
- data: PostUpdateManyMutationInput!
- where: PostWhereInput
- ): BatchPayload!
- deleteManyPost(where: PostWhereInput): BatchPayload!
- createOneComment(data: CommentCreateInput!): Comment!
- deleteOneComment(where: CommentWhereUniqueInput!): Comment
- updateOneComment(
- data: CommentUpdateInput!
- where: CommentWhereUniqueInput!
- ): Comment
- upsertOneComment(
- where: CommentWhereUniqueInput!
- create: CommentCreateInput!
- update: CommentUpdateInput!
- ): Comment!
- updateManyComment(
- data: CommentUpdateManyMutationInput!
- where: CommentWhereInput
- ): BatchPayload!
- deleteManyComment(where: CommentWhereInput): BatchPayload!
- executeRaw(query: String!, parameters: Json): Json!
- createPost(input: CreatePostInput!): Post!
- updatePost(id: String!, input: UpdatePostInput!): Post!
- deletePost(id: String!): Post!
- }
- type Post {
- id: String!
- title: String!
- body: String!
- createdAt: DateTime!
- comments(
- where: CommentWhereInput
- orderBy: CommentOrderByInput
- skip: Int
- after: CommentWhereUniqueInput
- before: CommentWhereUniqueInput
- first: Int
- last: Int
- ): [Comment]
- }
- input PostCreateInput {
- id: String
- title: String!
- body: String!
- createdAt: DateTime
- comments: CommentCreateManyWithoutPostInput
- }
- input PostCreateOneWithoutCommentsInput {
- create: PostCreateWithoutCommentsInput
- connect: PostWhereUniqueInput
- }
- input PostCreateWithoutCommentsInput {
- id: String
- title: String!
- body: String!
- createdAt: DateTime
- }
- enum PostOrderByInput {
- id_ASC
- id_DESC
- title_ASC
- title_DESC
- body_ASC
- body_DESC
- createdAt_ASC
- createdAt_DESC
- }
- input PostUpdateInput {
- id: String
- title: String
- body: String
- createdAt: DateTime
- comments: CommentUpdateManyWithoutPostInput
- }
- input PostUpdateManyMutationInput {
- id: String
- title: String
- body: String
- createdAt: DateTime
- }
- input PostUpdateOneWithoutCommentsInput {
- create: PostCreateWithoutCommentsInput
- connect: PostWhereUniqueInput
- disconnect: Boolean
- delete: Boolean
- update: PostUpdateWithoutCommentsDataInput
- upsert: PostUpsertWithoutCommentsInput
- }
- input PostUpdateWithoutCommentsDataInput {
- id: String
- title: String
- body: String
- createdAt: DateTime
- }
- input PostUpsertWithoutCommentsInput {
- update: PostUpdateWithoutCommentsDataInput!
- create: PostCreateWithoutCommentsInput!
- }
- input PostWhereInput {
- AND: PostWhereInput
- OR: PostWhereInput
- NOT: PostWhereInput
- id: String
- id_not: String
- id_in: String
- id_not_in: String
- id_lt: String
- id_lte: String
- id_gt: String
- id_gte: String
- id_contains: String
- id_not_contains: String
- id_starts_with: String
- id_not_starts_with: String
- id_ends_with: String
- id_not_ends_with: String
- 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
- body: String
- body_not: String
- body_in: String
- body_not_in: String
- body_lt: String
- body_lte: String
- body_gt: String
- body_gte: String
- body_contains: String
- body_not_contains: String
- body_starts_with: String
- body_not_starts_with: String
- body_ends_with: String
- body_not_ends_with: String
- createdAt: DateTime
- createdAt_not: DateTime
- createdAt_in: DateTime
- createdAt_not_in: DateTime
- createdAt_lt: DateTime
- createdAt_lte: DateTime
- createdAt_gt: DateTime
- createdAt_gte: DateTime
- comments_every: CommentWhereInput
- comments_some: CommentWhereInput
- comments_none: CommentWhereInput
- }
- input PostWhereUniqueInput {
- id: String
- }
- type Query {
- redwood: Redwood
- comments: [Comment!]!
- comment(id: String!): Comment!
- findManyPost(
- where: PostWhereInput
- orderBy: PostOrderByInput
- skip: Int
- after: PostWhereUniqueInput
- before: PostWhereUniqueInput
- first: Int
- last: Int
- ): [Post]!
- aggregatePost: AggregatePost!
- findOnePost(where: PostWhereUniqueInput!): Post
- findManyComment(
- where: CommentWhereInput
- orderBy: CommentOrderByInput
- skip: Int
- after: CommentWhereUniqueInput
- before: CommentWhereUniqueInput
- first: Int
- last: Int
- ): [Comment]!
- aggregateComment: AggregateComment!
- findOneComment(where: CommentWhereUniqueInput!): Comment
- posts: [Post!]!
- post(id: String!): Post!
- }
- type Redwood {
- version: String
- }
- # A time string at UTC, such as 10:15:30Z, compliant with the `full-time` format
- # outlined in section 5.6 of the RFC 3339profile of the ISO 8601 standard for
- # representation of dates and times using the Gregorian calendar.
- scalar Time
- input UpdateCommentInput {
- content: String
- postId: String
- }
- input UpdatePostInput {
- title: String
- body: String
- }
Advertisement
RAW Paste Data
Copied
Advertisement