Advertisement
Guest User

Untitled

a guest
May 10th, 2020
24
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type AggregateComment {
  2. count(
  3. where: CommentWhereInput
  4. orderBy: CommentOrderByInput
  5. skip: Int
  6. after: CommentWhereUniqueInput
  7. before: CommentWhereUniqueInput
  8. first: Int
  9. last: Int
  10. ): Int!
  11. }
  12.  
  13. type AggregatePost {
  14. count(
  15. where: PostWhereInput
  16. orderBy: PostOrderByInput
  17. skip: Int
  18. after: PostWhereUniqueInput
  19. before: PostWhereUniqueInput
  20. first: Int
  21. last: Int
  22. ): Int!
  23. }
  24.  
  25. type BatchPayload {
  26. count: Int!
  27. }
  28.  
  29. type Comment {
  30. id: String!
  31. content: String!
  32. createdAt: DateTime!
  33. Post: Post
  34. postId: String
  35. }
  36.  
  37. input CommentCreateInput {
  38. id: String
  39. content: String!
  40. createdAt: DateTime
  41. Post: PostCreateOneWithoutCommentsInput
  42. }
  43.  
  44. input CommentCreateManyWithoutPostInput {
  45. create: CommentCreateWithoutPostInput
  46. connect: CommentWhereUniqueInput
  47. }
  48.  
  49. input CommentCreateWithoutPostInput {
  50. id: String
  51. content: String!
  52. createdAt: DateTime
  53. }
  54.  
  55. enum CommentOrderByInput {
  56. id_ASC
  57. id_DESC
  58. content_ASC
  59. content_DESC
  60. createdAt_ASC
  61. createdAt_DESC
  62. postId_ASC
  63. postId_DESC
  64. }
  65.  
  66. input CommentScalarWhereInput {
  67. AND: CommentScalarWhereInput
  68. OR: CommentScalarWhereInput
  69. NOT: CommentScalarWhereInput
  70. id: String
  71. id_not: String
  72. id_in: String
  73. id_not_in: String
  74. id_lt: String
  75. id_lte: String
  76. id_gt: String
  77. id_gte: String
  78. id_contains: String
  79. id_not_contains: String
  80. id_starts_with: String
  81. id_not_starts_with: String
  82. id_ends_with: String
  83. id_not_ends_with: String
  84. content: String
  85. content_not: String
  86. content_in: String
  87. content_not_in: String
  88. content_lt: String
  89. content_lte: String
  90. content_gt: String
  91. content_gte: String
  92. content_contains: String
  93. content_not_contains: String
  94. content_starts_with: String
  95. content_not_starts_with: String
  96. content_ends_with: String
  97. content_not_ends_with: String
  98. createdAt: DateTime
  99. createdAt_not: DateTime
  100. createdAt_in: DateTime
  101. createdAt_not_in: DateTime
  102. createdAt_lt: DateTime
  103. createdAt_lte: DateTime
  104. createdAt_gt: DateTime
  105. createdAt_gte: DateTime
  106. postId: String
  107. postId_not: String
  108. postId_in: String
  109. postId_not_in: String
  110. postId_lt: String
  111. postId_lte: String
  112. postId_gt: String
  113. postId_gte: String
  114. postId_contains: String
  115. postId_not_contains: String
  116. postId_starts_with: String
  117. postId_not_starts_with: String
  118. postId_ends_with: String
  119. postId_not_ends_with: String
  120. }
  121.  
  122. input CommentUpdateInput {
  123. id: String
  124. content: String
  125. createdAt: DateTime
  126. Post: PostUpdateOneWithoutCommentsInput
  127. }
  128.  
  129. input CommentUpdateManyDataInput {
  130. id: String
  131. content: String
  132. createdAt: DateTime
  133. }
  134.  
  135. input CommentUpdateManyMutationInput {
  136. id: String
  137. content: String
  138. createdAt: DateTime
  139. }
  140.  
  141. input CommentUpdateManyWithoutPostInput {
  142. create: CommentCreateWithoutPostInput
  143. connect: CommentWhereUniqueInput
  144. set: CommentWhereUniqueInput
  145. disconnect: CommentWhereUniqueInput
  146. delete: CommentWhereUniqueInput
  147. update: CommentUpdateWithWhereUniqueWithoutPostInput
  148. updateMany: CommentUpdateManyWithWhereNestedInput
  149. deleteMany: CommentScalarWhereInput
  150. upsert: CommentUpsertWithWhereUniqueWithoutPostInput
  151. }
  152.  
  153. input CommentUpdateManyWithWhereNestedInput {
  154. where: CommentScalarWhereInput!
  155. data: CommentUpdateManyDataInput!
  156. }
  157.  
  158. input CommentUpdateWithoutPostDataInput {
  159. id: String
  160. content: String
  161. createdAt: DateTime
  162. }
  163.  
  164. input CommentUpdateWithWhereUniqueWithoutPostInput {
  165. where: CommentWhereUniqueInput!
  166. data: CommentUpdateWithoutPostDataInput!
  167. }
  168.  
  169. input CommentUpsertWithWhereUniqueWithoutPostInput {
  170. where: CommentWhereUniqueInput!
  171. update: CommentUpdateWithoutPostDataInput!
  172. create: CommentCreateWithoutPostInput!
  173. }
  174.  
  175. input CommentWhereInput {
  176. AND: CommentWhereInput
  177. OR: CommentWhereInput
  178. NOT: CommentWhereInput
  179. id: String
  180. id_not: String
  181. id_in: String
  182. id_not_in: String
  183. id_lt: String
  184. id_lte: String
  185. id_gt: String
  186. id_gte: String
  187. id_contains: String
  188. id_not_contains: String
  189. id_starts_with: String
  190. id_not_starts_with: String
  191. id_ends_with: String
  192. id_not_ends_with: String
  193. content: String
  194. content_not: String
  195. content_in: String
  196. content_not_in: String
  197. content_lt: String
  198. content_lte: String
  199. content_gt: String
  200. content_gte: String
  201. content_contains: String
  202. content_not_contains: String
  203. content_starts_with: String
  204. content_not_starts_with: String
  205. content_ends_with: String
  206. content_not_ends_with: String
  207. createdAt: DateTime
  208. createdAt_not: DateTime
  209. createdAt_in: DateTime
  210. createdAt_not_in: DateTime
  211. createdAt_lt: DateTime
  212. createdAt_lte: DateTime
  213. createdAt_gt: DateTime
  214. createdAt_gte: DateTime
  215. postId: String
  216. postId_not: String
  217. postId_in: String
  218. postId_not_in: String
  219. postId_lt: String
  220. postId_lte: String
  221. postId_gt: String
  222. postId_gte: String
  223. postId_contains: String
  224. postId_not_contains: String
  225. postId_starts_with: String
  226. postId_not_starts_with: String
  227. postId_ends_with: String
  228. postId_not_ends_with: String
  229. Post: PostWhereInput
  230. }
  231.  
  232. input CommentWhereUniqueInput {
  233. id: String
  234. }
  235.  
  236. input CreateCommentInput {
  237. content: String!
  238. postId: String
  239. }
  240.  
  241. input CreatePostInput {
  242. title: String!
  243. body: String!
  244. }
  245.  
  246. # A date string, such as 2007-12-03, compliant with the `full-date` format
  247. # outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for
  248. # representation of dates and times using the Gregorian calendar.
  249. scalar Date
  250.  
  251. # A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
  252. # `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
  253. # 8601 standard for representation of dates and times using the Gregorian calendar.
  254. scalar DateTime
  255.  
  256. scalar Json
  257.  
  258. type Mutation {
  259. createComment(input: CreateCommentInput!): Comment!
  260. updateComment(id: String!, input: UpdateCommentInput!): Comment!
  261. deleteComment(id: String!): Comment!
  262. createOnePost(data: PostCreateInput!): Post!
  263. deleteOnePost(where: PostWhereUniqueInput!): Post
  264. updateOnePost(data: PostUpdateInput!, where: PostWhereUniqueInput!): Post
  265. upsertOnePost(
  266. where: PostWhereUniqueInput!
  267. create: PostCreateInput!
  268. update: PostUpdateInput!
  269. ): Post!
  270. updateManyPost(
  271. data: PostUpdateManyMutationInput!
  272. where: PostWhereInput
  273. ): BatchPayload!
  274. deleteManyPost(where: PostWhereInput): BatchPayload!
  275. createOneComment(data: CommentCreateInput!): Comment!
  276. deleteOneComment(where: CommentWhereUniqueInput!): Comment
  277. updateOneComment(
  278. data: CommentUpdateInput!
  279. where: CommentWhereUniqueInput!
  280. ): Comment
  281. upsertOneComment(
  282. where: CommentWhereUniqueInput!
  283. create: CommentCreateInput!
  284. update: CommentUpdateInput!
  285. ): Comment!
  286. updateManyComment(
  287. data: CommentUpdateManyMutationInput!
  288. where: CommentWhereInput
  289. ): BatchPayload!
  290. deleteManyComment(where: CommentWhereInput): BatchPayload!
  291. executeRaw(query: String!, parameters: Json): Json!
  292. createPost(input: CreatePostInput!): Post!
  293. updatePost(id: String!, input: UpdatePostInput!): Post!
  294. deletePost(id: String!): Post!
  295. }
  296.  
  297. type Post {
  298. id: String!
  299. title: String!
  300. body: String!
  301. createdAt: DateTime!
  302. comments(
  303. where: CommentWhereInput
  304. orderBy: CommentOrderByInput
  305. skip: Int
  306. after: CommentWhereUniqueInput
  307. before: CommentWhereUniqueInput
  308. first: Int
  309. last: Int
  310. ): [Comment]
  311. }
  312.  
  313. input PostCreateInput {
  314. id: String
  315. title: String!
  316. body: String!
  317. createdAt: DateTime
  318. comments: CommentCreateManyWithoutPostInput
  319. }
  320.  
  321. input PostCreateOneWithoutCommentsInput {
  322. create: PostCreateWithoutCommentsInput
  323. connect: PostWhereUniqueInput
  324. }
  325.  
  326. input PostCreateWithoutCommentsInput {
  327. id: String
  328. title: String!
  329. body: String!
  330. createdAt: DateTime
  331. }
  332.  
  333. enum PostOrderByInput {
  334. id_ASC
  335. id_DESC
  336. title_ASC
  337. title_DESC
  338. body_ASC
  339. body_DESC
  340. createdAt_ASC
  341. createdAt_DESC
  342. }
  343.  
  344. input PostUpdateInput {
  345. id: String
  346. title: String
  347. body: String
  348. createdAt: DateTime
  349. comments: CommentUpdateManyWithoutPostInput
  350. }
  351.  
  352. input PostUpdateManyMutationInput {
  353. id: String
  354. title: String
  355. body: String
  356. createdAt: DateTime
  357. }
  358.  
  359. input PostUpdateOneWithoutCommentsInput {
  360. create: PostCreateWithoutCommentsInput
  361. connect: PostWhereUniqueInput
  362. disconnect: Boolean
  363. delete: Boolean
  364. update: PostUpdateWithoutCommentsDataInput
  365. upsert: PostUpsertWithoutCommentsInput
  366. }
  367.  
  368. input PostUpdateWithoutCommentsDataInput {
  369. id: String
  370. title: String
  371. body: String
  372. createdAt: DateTime
  373. }
  374.  
  375. input PostUpsertWithoutCommentsInput {
  376. update: PostUpdateWithoutCommentsDataInput!
  377. create: PostCreateWithoutCommentsInput!
  378. }
  379.  
  380. input PostWhereInput {
  381. AND: PostWhereInput
  382. OR: PostWhereInput
  383. NOT: PostWhereInput
  384. id: String
  385. id_not: String
  386. id_in: String
  387. id_not_in: String
  388. id_lt: String
  389. id_lte: String
  390. id_gt: String
  391. id_gte: String
  392. id_contains: String
  393. id_not_contains: String
  394. id_starts_with: String
  395. id_not_starts_with: String
  396. id_ends_with: String
  397. id_not_ends_with: String
  398. title: String
  399. title_not: String
  400. title_in: String
  401. title_not_in: String
  402. title_lt: String
  403. title_lte: String
  404. title_gt: String
  405. title_gte: String
  406. title_contains: String
  407. title_not_contains: String
  408. title_starts_with: String
  409. title_not_starts_with: String
  410. title_ends_with: String
  411. title_not_ends_with: String
  412. body: String
  413. body_not: String
  414. body_in: String
  415. body_not_in: String
  416. body_lt: String
  417. body_lte: String
  418. body_gt: String
  419. body_gte: String
  420. body_contains: String
  421. body_not_contains: String
  422. body_starts_with: String
  423. body_not_starts_with: String
  424. body_ends_with: String
  425. body_not_ends_with: String
  426. createdAt: DateTime
  427. createdAt_not: DateTime
  428. createdAt_in: DateTime
  429. createdAt_not_in: DateTime
  430. createdAt_lt: DateTime
  431. createdAt_lte: DateTime
  432. createdAt_gt: DateTime
  433. createdAt_gte: DateTime
  434. comments_every: CommentWhereInput
  435. comments_some: CommentWhereInput
  436. comments_none: CommentWhereInput
  437. }
  438.  
  439. input PostWhereUniqueInput {
  440. id: String
  441. }
  442.  
  443. type Query {
  444. redwood: Redwood
  445. comments: [Comment!]!
  446. comment(id: String!): Comment!
  447. findManyPost(
  448. where: PostWhereInput
  449. orderBy: PostOrderByInput
  450. skip: Int
  451. after: PostWhereUniqueInput
  452. before: PostWhereUniqueInput
  453. first: Int
  454. last: Int
  455. ): [Post]!
  456. aggregatePost: AggregatePost!
  457. findOnePost(where: PostWhereUniqueInput!): Post
  458. findManyComment(
  459. where: CommentWhereInput
  460. orderBy: CommentOrderByInput
  461. skip: Int
  462. after: CommentWhereUniqueInput
  463. before: CommentWhereUniqueInput
  464. first: Int
  465. last: Int
  466. ): [Comment]!
  467. aggregateComment: AggregateComment!
  468. findOneComment(where: CommentWhereUniqueInput!): Comment
  469. posts: [Post!]!
  470. post(id: String!): Post!
  471. }
  472.  
  473. type Redwood {
  474. version: String
  475. }
  476.  
  477. # A time string at UTC, such as 10:15:30Z, compliant with the `full-time` format
  478. # outlined in section 5.6 of the RFC 3339profile of the ISO 8601 standard for
  479. # representation of dates and times using the Gregorian calendar.
  480. scalar Time
  481.  
  482. input UpdateCommentInput {
  483. content: String
  484. postId: String
  485. }
  486.  
  487. input UpdatePostInput {
  488. title: String
  489. body: String
  490. }
Advertisement
RAW Paste Data Copied
Advertisement