├── tsconfig.prod.json
├── src
├── @types
│ └── aws-amplify-react.d.ts
├── index.tsx
├── Blogs.tsx
├── App.tsx
├── Form.tsx
├── graphql
│ ├── queries.ts
│ ├── subscriptions.ts
│ ├── mutations.ts
│ └── schema.json
├── registerServiceWorker.ts
└── API.ts
├── public
├── favicon.ico
├── manifest.json
└── index.html
├── tsconfig.test.json
├── images.d.ts
├── README.md
├── .gitignore
├── tslint.json
├── package.json
└── tsconfig.json
/tsconfig.prod.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json"
3 | }
--------------------------------------------------------------------------------
/src/@types/aws-amplify-react.d.ts:
--------------------------------------------------------------------------------
1 | declare module "aws-amplify-react";
2 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/benawad/aws-appsync-example/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/tsconfig.test.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "compilerOptions": {
4 | "module": "commonjs"
5 | }
6 | }
--------------------------------------------------------------------------------
/images.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.svg'
2 | declare module '*.png'
3 | declare module '*.jpg'
4 | declare module '*.jpeg'
5 | declare module '*.gif'
6 | declare module '*.bmp'
7 | declare module '*.tiff'
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # aws-appsync-example
2 | Example AWS AppSync project with React.js
3 |
4 | Read how this was made here: https://medium.com/@benawad/aws-appsync-tutorial-with-react-4e272a6f3527
5 | Or watch here: https://youtu.be/E270S3eNqSg
6 |
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | }
10 | ],
11 | "start_url": "./index.html",
12 | "display": "standalone",
13 | "theme_color": "#000000",
14 | "background_color": "#ffffff"
15 | }
16 |
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 | import * as ReactDOM from "react-dom";
3 | import Amplify from "@aws-amplify/core";
4 |
5 | import config from "./aws-exports";
6 | import App from "./App";
7 | import registerServiceWorker from "./registerServiceWorker";
8 |
9 | Amplify.configure(config);
10 |
11 | ReactDOM.render(, document.getElementById("root") as HTMLElement);
12 | registerServiceWorker();
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # testing
7 | /coverage
8 |
9 | # production
10 | /build
11 |
12 | # misc
13 | .DS_Store
14 | .env.local
15 | .env.development.local
16 | .env.test.local
17 | .env.production.local
18 |
19 | npm-debug.log*
20 | yarn-debug.log*
21 | yarn-error.log*
22 |
23 | # amplify
24 | .amplifyrc
25 | aws-exports.js
26 | amplify
27 | .graphqlconfig.yml
--------------------------------------------------------------------------------
/src/Blogs.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 | import { graphqlOperation } from "aws-amplify";
3 | import { Connect } from "aws-amplify-react";
4 | import { listBlogs } from "./graphql/queries";
5 |
6 | export class Blogs extends React.PureComponent {
7 | render() {
8 | return (
9 |
10 | {({ data: { listBlogs: blogs } }: any) => {
11 | if (!blogs) {
12 | return null;
13 | }
14 |
15 | return blogs.items.map((b: any) => {b.name}
);
16 | }}
17 |
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
3 | "jsRules": {
4 | "object-literal-sort-keys": false
5 | },
6 | "rules": {
7 | "member-access": false,
8 | "object-literal-sort-keys": false,
9 | "ordered-imports": false,
10 | "interface-name": false,
11 | "no-submodule-imports": false,
12 | "no-implicit-dependencies": false,
13 | "no-empty": false,
14 | "jsx-no-lambda": false,
15 | "no-console": false
16 | },
17 | "linterOptions": {
18 | "exclude": [
19 | "config/**/*.js",
20 | "node_modules/**/*.ts",
21 | "coverage/lcov-report/*.js"
22 | ]
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "my-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "aws-amplify": "^1.1.6",
7 | "aws-amplify-react": "^2.0.7",
8 | "react": "^16.5.2",
9 | "react-dom": "^16.5.2",
10 | "react-scripts-ts": "3.1.0"
11 | },
12 | "scripts": {
13 | "start": "react-scripts-ts start",
14 | "build": "react-scripts-ts build",
15 | "test": "react-scripts-ts test --env=jsdom",
16 | "eject": "react-scripts-ts eject"
17 | },
18 | "devDependencies": {
19 | "@types/jest": "^23.3.5",
20 | "@types/node": "^10.12.0",
21 | "@types/react": "^16.4.18",
22 | "@types/react-dom": "^16.0.9",
23 | "typescript": "^3.1.3"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "build/dist",
5 | "module": "esnext",
6 | "target": "es5",
7 | "lib": ["es6", "dom"],
8 | "sourceMap": true,
9 | "allowJs": true,
10 | "jsx": "react",
11 | "moduleResolution": "node",
12 | "rootDir": "src",
13 | "forceConsistentCasingInFileNames": true,
14 | "noImplicitReturns": true,
15 | "noImplicitThis": true,
16 | "noImplicitAny": true,
17 | "importHelpers": true,
18 | "strictNullChecks": true,
19 | "suppressImplicitAnyIndexErrors": true,
20 | "noUnusedLocals": true
21 | },
22 | "exclude": [
23 | "node_modules",
24 | "build",
25 | "scripts",
26 | "acceptance-tests",
27 | "webpack",
28 | "jest",
29 | "src/setupTests.ts"
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/src/App.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 | import { Connect } from "aws-amplify-react";
3 | import { graphqlOperation } from "aws-amplify";
4 |
5 | import { Form } from "./Form";
6 | import { createBlog } from "./graphql/mutations";
7 | import { Blogs } from "./Blogs";
8 |
9 | class App extends React.Component {
10 | public render() {
11 | return (
12 |
13 |
14 | {({ mutation }: any) => (
15 |
23 |
24 |
25 | );
26 | }
27 | }
28 |
29 | export default App;
30 |
--------------------------------------------------------------------------------
/src/Form.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 | interface State {
3 | name: string;
4 | }
5 | interface Props {
6 | onSubmit: (formValues: State) => void;
7 | }
8 | export class Form extends React.PureComponent {
9 | state = {
10 | name: ""
11 | };
12 | handleChange = (e: any) => {
13 | const { name, value } = e.target;
14 | this.setState({ [name]: value } as any);
15 | };
16 | render() {
17 | return (
18 |
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
22 | React App
23 |
24 |
25 |
28 |
29 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/graphql/queries.ts:
--------------------------------------------------------------------------------
1 | // tslint:disable
2 | // this is an auto generated file. This will be overwritten
3 |
4 | export const getBlog = `query GetBlog($id: ID!) {
5 | getBlog(id: $id) {
6 | id
7 | name
8 | posts {
9 | items {
10 | id
11 | title
12 | }
13 | nextToken
14 | }
15 | }
16 | }
17 | `;
18 | export const listBlogs = `query ListBlogs(
19 | $filter: ModelBlogFilterInput
20 | $limit: Int
21 | $nextToken: String
22 | ) {
23 | listBlogs(filter: $filter, limit: $limit, nextToken: $nextToken) {
24 | items {
25 | id
26 | name
27 | posts {
28 | items {
29 | id
30 | title
31 | }
32 | nextToken
33 | }
34 | }
35 | nextToken
36 | }
37 | }
38 | `;
39 | export const getPost = `query GetPost($id: ID!) {
40 | getPost(id: $id) {
41 | id
42 | title
43 | blog {
44 | id
45 | name
46 | }
47 | comments {
48 | items {
49 | id
50 | content
51 | }
52 | nextToken
53 | }
54 | }
55 | }
56 | `;
57 | export const listPosts = `query ListPosts(
58 | $filter: ModelPostFilterInput
59 | $limit: Int
60 | $nextToken: String
61 | ) {
62 | listPosts(filter: $filter, limit: $limit, nextToken: $nextToken) {
63 | items {
64 | id
65 | title
66 | blog {
67 | id
68 | name
69 | }
70 | comments {
71 | items {
72 | id
73 | content
74 | }
75 | nextToken
76 | }
77 | }
78 | nextToken
79 | }
80 | }
81 | `;
82 | export const getComment = `query GetComment($id: ID!) {
83 | getComment(id: $id) {
84 | id
85 | content
86 | post {
87 | id
88 | title
89 | }
90 | }
91 | }
92 | `;
93 | export const listComments = `query ListComments(
94 | $filter: ModelCommentFilterInput
95 | $limit: Int
96 | $nextToken: String
97 | ) {
98 | listComments(filter: $filter, limit: $limit, nextToken: $nextToken) {
99 | items {
100 | id
101 | content
102 | post {
103 | id
104 | title
105 | }
106 | }
107 | nextToken
108 | }
109 | }
110 | `;
111 |
--------------------------------------------------------------------------------
/src/graphql/subscriptions.ts:
--------------------------------------------------------------------------------
1 | // tslint:disable
2 | // this is an auto generated file. This will be overwritten
3 |
4 | export const onCreateBlog = `subscription OnCreateBlog {
5 | onCreateBlog {
6 | id
7 | name
8 | posts {
9 | items {
10 | id
11 | title
12 | }
13 | nextToken
14 | }
15 | }
16 | }
17 | `;
18 | export const onUpdateBlog = `subscription OnUpdateBlog {
19 | onUpdateBlog {
20 | id
21 | name
22 | posts {
23 | items {
24 | id
25 | title
26 | }
27 | nextToken
28 | }
29 | }
30 | }
31 | `;
32 | export const onDeleteBlog = `subscription OnDeleteBlog {
33 | onDeleteBlog {
34 | id
35 | name
36 | posts {
37 | items {
38 | id
39 | title
40 | }
41 | nextToken
42 | }
43 | }
44 | }
45 | `;
46 | export const onCreatePost = `subscription OnCreatePost {
47 | onCreatePost {
48 | id
49 | title
50 | blog {
51 | id
52 | name
53 | }
54 | comments {
55 | items {
56 | id
57 | content
58 | }
59 | nextToken
60 | }
61 | }
62 | }
63 | `;
64 | export const onUpdatePost = `subscription OnUpdatePost {
65 | onUpdatePost {
66 | id
67 | title
68 | blog {
69 | id
70 | name
71 | }
72 | comments {
73 | items {
74 | id
75 | content
76 | }
77 | nextToken
78 | }
79 | }
80 | }
81 | `;
82 | export const onDeletePost = `subscription OnDeletePost {
83 | onDeletePost {
84 | id
85 | title
86 | blog {
87 | id
88 | name
89 | }
90 | comments {
91 | items {
92 | id
93 | content
94 | }
95 | nextToken
96 | }
97 | }
98 | }
99 | `;
100 | export const onCreateComment = `subscription OnCreateComment {
101 | onCreateComment {
102 | id
103 | content
104 | post {
105 | id
106 | title
107 | }
108 | }
109 | }
110 | `;
111 | export const onUpdateComment = `subscription OnUpdateComment {
112 | onUpdateComment {
113 | id
114 | content
115 | post {
116 | id
117 | title
118 | }
119 | }
120 | }
121 | `;
122 | export const onDeleteComment = `subscription OnDeleteComment {
123 | onDeleteComment {
124 | id
125 | content
126 | post {
127 | id
128 | title
129 | }
130 | }
131 | }
132 | `;
133 |
--------------------------------------------------------------------------------
/src/graphql/mutations.ts:
--------------------------------------------------------------------------------
1 | // tslint:disable
2 | // this is an auto generated file. This will be overwritten
3 |
4 | export const createBlog = `mutation CreateBlog($input: CreateBlogInput!) {
5 | createBlog(input: $input) {
6 | id
7 | name
8 | posts {
9 | items {
10 | id
11 | title
12 | }
13 | nextToken
14 | }
15 | }
16 | }
17 | `;
18 | export const updateBlog = `mutation UpdateBlog($input: UpdateBlogInput!) {
19 | updateBlog(input: $input) {
20 | id
21 | name
22 | posts {
23 | items {
24 | id
25 | title
26 | }
27 | nextToken
28 | }
29 | }
30 | }
31 | `;
32 | export const deleteBlog = `mutation DeleteBlog($input: DeleteBlogInput!) {
33 | deleteBlog(input: $input) {
34 | id
35 | name
36 | posts {
37 | items {
38 | id
39 | title
40 | }
41 | nextToken
42 | }
43 | }
44 | }
45 | `;
46 | export const createPost = `mutation CreatePost($input: CreatePostInput!) {
47 | createPost(input: $input) {
48 | id
49 | title
50 | blog {
51 | id
52 | name
53 | }
54 | comments {
55 | items {
56 | id
57 | content
58 | }
59 | nextToken
60 | }
61 | }
62 | }
63 | `;
64 | export const updatePost = `mutation UpdatePost($input: UpdatePostInput!) {
65 | updatePost(input: $input) {
66 | id
67 | title
68 | blog {
69 | id
70 | name
71 | }
72 | comments {
73 | items {
74 | id
75 | content
76 | }
77 | nextToken
78 | }
79 | }
80 | }
81 | `;
82 | export const deletePost = `mutation DeletePost($input: DeletePostInput!) {
83 | deletePost(input: $input) {
84 | id
85 | title
86 | blog {
87 | id
88 | name
89 | }
90 | comments {
91 | items {
92 | id
93 | content
94 | }
95 | nextToken
96 | }
97 | }
98 | }
99 | `;
100 | export const createComment = `mutation CreateComment($input: CreateCommentInput!) {
101 | createComment(input: $input) {
102 | id
103 | content
104 | post {
105 | id
106 | title
107 | }
108 | }
109 | }
110 | `;
111 | export const updateComment = `mutation UpdateComment($input: UpdateCommentInput!) {
112 | updateComment(input: $input) {
113 | id
114 | content
115 | post {
116 | id
117 | title
118 | }
119 | }
120 | }
121 | `;
122 | export const deleteComment = `mutation DeleteComment($input: DeleteCommentInput!) {
123 | deleteComment(input: $input) {
124 | id
125 | content
126 | post {
127 | id
128 | title
129 | }
130 | }
131 | }
132 | `;
133 |
--------------------------------------------------------------------------------
/src/registerServiceWorker.ts:
--------------------------------------------------------------------------------
1 | // tslint:disable:no-console
2 | // In production, we register a service worker to serve assets from local cache.
3 |
4 | // This lets the app load faster on subsequent visits in production, and gives
5 | // it offline capabilities. However, it also means that developers (and users)
6 | // will only see deployed updates on the 'N+1' visit to a page, since previously
7 | // cached resources are updated in the background.
8 |
9 | // To learn more about the benefits of this model, read https://goo.gl/KwvDNy.
10 | // This link also includes instructions on opting out of this behavior.
11 |
12 | const isLocalhost = Boolean(
13 | window.location.hostname === 'localhost' ||
14 | // [::1] is the IPv6 localhost address.
15 | window.location.hostname === '[::1]' ||
16 | // 127.0.0.1/8 is considered localhost for IPv4.
17 | window.location.hostname.match(
18 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
19 | )
20 | );
21 |
22 | export default function register() {
23 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
24 | // The URL constructor is available in all browsers that support SW.
25 | const publicUrl = new URL(
26 | process.env.PUBLIC_URL!,
27 | window.location.toString()
28 | );
29 | if (publicUrl.origin !== window.location.origin) {
30 | // Our service worker won't work if PUBLIC_URL is on a different origin
31 | // from what our page is served on. This might happen if a CDN is used to
32 | // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374
33 | return;
34 | }
35 |
36 | window.addEventListener('load', () => {
37 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
38 |
39 | if (isLocalhost) {
40 | // This is running on localhost. Lets check if a service worker still exists or not.
41 | checkValidServiceWorker(swUrl);
42 |
43 | // Add some additional logging to localhost, pointing developers to the
44 | // service worker/PWA documentation.
45 | navigator.serviceWorker.ready.then(() => {
46 | console.log(
47 | 'This web app is being served cache-first by a service ' +
48 | 'worker. To learn more, visit https://goo.gl/SC7cgQ'
49 | );
50 | });
51 | } else {
52 | // Is not local host. Just register service worker
53 | registerValidSW(swUrl);
54 | }
55 | });
56 | }
57 | }
58 |
59 | function registerValidSW(swUrl: string) {
60 | navigator.serviceWorker
61 | .register(swUrl)
62 | .then(registration => {
63 | registration.onupdatefound = () => {
64 | const installingWorker = registration.installing;
65 | if (installingWorker) {
66 | installingWorker.onstatechange = () => {
67 | if (installingWorker.state === 'installed') {
68 | if (navigator.serviceWorker.controller) {
69 | // At this point, the old content will have been purged and
70 | // the fresh content will have been added to the cache.
71 | // It's the perfect time to display a 'New content is
72 | // available; please refresh.' message in your web app.
73 | console.log('New content is available; please refresh.');
74 | } else {
75 | // At this point, everything has been precached.
76 | // It's the perfect time to display a
77 | // 'Content is cached for offline use.' message.
78 | console.log('Content is cached for offline use.');
79 | }
80 | }
81 | };
82 | }
83 | };
84 | })
85 | .catch(error => {
86 | console.error('Error during service worker registration:', error);
87 | });
88 | }
89 |
90 | function checkValidServiceWorker(swUrl: string) {
91 | // Check if the service worker can be found. If it can't reload the page.
92 | fetch(swUrl)
93 | .then(response => {
94 | // Ensure service worker exists, and that we really are getting a JS file.
95 | if (
96 | response.status === 404 ||
97 | response.headers.get('content-type')!.indexOf('javascript') === -1
98 | ) {
99 | // No service worker found. Probably a different app. Reload the page.
100 | navigator.serviceWorker.ready.then(registration => {
101 | registration.unregister().then(() => {
102 | window.location.reload();
103 | });
104 | });
105 | } else {
106 | // Service worker found. Proceed as normal.
107 | registerValidSW(swUrl);
108 | }
109 | })
110 | .catch(() => {
111 | console.log(
112 | 'No internet connection found. App is running in offline mode.'
113 | );
114 | });
115 | }
116 |
117 | export function unregister() {
118 | if ('serviceWorker' in navigator) {
119 | navigator.serviceWorker.ready.then(registration => {
120 | registration.unregister();
121 | });
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/src/API.ts:
--------------------------------------------------------------------------------
1 | /* tslint:disable */
2 | // This file was automatically generated and should not be edited.
3 |
4 | export type CreateBlogInput = {
5 | name: string,
6 | };
7 |
8 | export type UpdateBlogInput = {
9 | id: string,
10 | name?: string | null,
11 | };
12 |
13 | export type DeleteBlogInput = {
14 | id?: string | null,
15 | };
16 |
17 | export type CreatePostInput = {
18 | title: string,
19 | postBlogId?: string | null,
20 | };
21 |
22 | export type UpdatePostInput = {
23 | id: string,
24 | title?: string | null,
25 | postBlogId?: string | null,
26 | };
27 |
28 | export type DeletePostInput = {
29 | id?: string | null,
30 | };
31 |
32 | export type CreateCommentInput = {
33 | content?: string | null,
34 | commentPostId?: string | null,
35 | };
36 |
37 | export type UpdateCommentInput = {
38 | id: string,
39 | content?: string | null,
40 | commentPostId?: string | null,
41 | };
42 |
43 | export type DeleteCommentInput = {
44 | id?: string | null,
45 | };
46 |
47 | export type ModelBlogFilterInput = {
48 | id?: ModelIDFilterInput | null,
49 | name?: ModelStringFilterInput | null,
50 | and?: Array< ModelBlogFilterInput | null > | null,
51 | or?: Array< ModelBlogFilterInput | null > | null,
52 | not?: ModelBlogFilterInput | null,
53 | };
54 |
55 | export type ModelIDFilterInput = {
56 | ne?: string | null,
57 | eq?: string | null,
58 | le?: string | null,
59 | lt?: string | null,
60 | ge?: string | null,
61 | gt?: string | null,
62 | contains?: string | null,
63 | notContains?: string | null,
64 | between?: Array< string | null > | null,
65 | beginsWith?: string | null,
66 | };
67 |
68 | export type ModelStringFilterInput = {
69 | ne?: string | null,
70 | eq?: string | null,
71 | le?: string | null,
72 | lt?: string | null,
73 | ge?: string | null,
74 | gt?: string | null,
75 | contains?: string | null,
76 | notContains?: string | null,
77 | between?: Array< string | null > | null,
78 | beginsWith?: string | null,
79 | };
80 |
81 | export type ModelPostFilterInput = {
82 | id?: ModelIDFilterInput | null,
83 | title?: ModelStringFilterInput | null,
84 | and?: Array< ModelPostFilterInput | null > | null,
85 | or?: Array< ModelPostFilterInput | null > | null,
86 | not?: ModelPostFilterInput | null,
87 | };
88 |
89 | export type ModelCommentFilterInput = {
90 | id?: ModelIDFilterInput | null,
91 | content?: ModelStringFilterInput | null,
92 | and?: Array< ModelCommentFilterInput | null > | null,
93 | or?: Array< ModelCommentFilterInput | null > | null,
94 | not?: ModelCommentFilterInput | null,
95 | };
96 |
97 | export type CreateBlogMutationVariables = {
98 | input: CreateBlogInput,
99 | };
100 |
101 | export type CreateBlogMutation = {
102 | createBlog: {
103 | __typename: "Blog",
104 | id: string,
105 | name: string,
106 | posts: {
107 | __typename: "ModelPostConnection",
108 | items: Array< {
109 | __typename: "Post",
110 | id: string,
111 | title: string,
112 | } | null > | null,
113 | nextToken: string | null,
114 | } | null,
115 | } | null,
116 | };
117 |
118 | export type UpdateBlogMutationVariables = {
119 | input: UpdateBlogInput,
120 | };
121 |
122 | export type UpdateBlogMutation = {
123 | updateBlog: {
124 | __typename: "Blog",
125 | id: string,
126 | name: string,
127 | posts: {
128 | __typename: "ModelPostConnection",
129 | items: Array< {
130 | __typename: "Post",
131 | id: string,
132 | title: string,
133 | } | null > | null,
134 | nextToken: string | null,
135 | } | null,
136 | } | null,
137 | };
138 |
139 | export type DeleteBlogMutationVariables = {
140 | input: DeleteBlogInput,
141 | };
142 |
143 | export type DeleteBlogMutation = {
144 | deleteBlog: {
145 | __typename: "Blog",
146 | id: string,
147 | name: string,
148 | posts: {
149 | __typename: "ModelPostConnection",
150 | items: Array< {
151 | __typename: "Post",
152 | id: string,
153 | title: string,
154 | } | null > | null,
155 | nextToken: string | null,
156 | } | null,
157 | } | null,
158 | };
159 |
160 | export type CreatePostMutationVariables = {
161 | input: CreatePostInput,
162 | };
163 |
164 | export type CreatePostMutation = {
165 | createPost: {
166 | __typename: "Post",
167 | id: string,
168 | title: string,
169 | blog: {
170 | __typename: "Blog",
171 | id: string,
172 | name: string,
173 | } | null,
174 | comments: {
175 | __typename: "ModelCommentConnection",
176 | items: Array< {
177 | __typename: "Comment",
178 | id: string,
179 | content: string | null,
180 | } | null > | null,
181 | nextToken: string | null,
182 | } | null,
183 | } | null,
184 | };
185 |
186 | export type UpdatePostMutationVariables = {
187 | input: UpdatePostInput,
188 | };
189 |
190 | export type UpdatePostMutation = {
191 | updatePost: {
192 | __typename: "Post",
193 | id: string,
194 | title: string,
195 | blog: {
196 | __typename: "Blog",
197 | id: string,
198 | name: string,
199 | } | null,
200 | comments: {
201 | __typename: "ModelCommentConnection",
202 | items: Array< {
203 | __typename: "Comment",
204 | id: string,
205 | content: string | null,
206 | } | null > | null,
207 | nextToken: string | null,
208 | } | null,
209 | } | null,
210 | };
211 |
212 | export type DeletePostMutationVariables = {
213 | input: DeletePostInput,
214 | };
215 |
216 | export type DeletePostMutation = {
217 | deletePost: {
218 | __typename: "Post",
219 | id: string,
220 | title: string,
221 | blog: {
222 | __typename: "Blog",
223 | id: string,
224 | name: string,
225 | } | null,
226 | comments: {
227 | __typename: "ModelCommentConnection",
228 | items: Array< {
229 | __typename: "Comment",
230 | id: string,
231 | content: string | null,
232 | } | null > | null,
233 | nextToken: string | null,
234 | } | null,
235 | } | null,
236 | };
237 |
238 | export type CreateCommentMutationVariables = {
239 | input: CreateCommentInput,
240 | };
241 |
242 | export type CreateCommentMutation = {
243 | createComment: {
244 | __typename: "Comment",
245 | id: string,
246 | content: string | null,
247 | post: {
248 | __typename: "Post",
249 | id: string,
250 | title: string,
251 | } | null,
252 | } | null,
253 | };
254 |
255 | export type UpdateCommentMutationVariables = {
256 | input: UpdateCommentInput,
257 | };
258 |
259 | export type UpdateCommentMutation = {
260 | updateComment: {
261 | __typename: "Comment",
262 | id: string,
263 | content: string | null,
264 | post: {
265 | __typename: "Post",
266 | id: string,
267 | title: string,
268 | } | null,
269 | } | null,
270 | };
271 |
272 | export type DeleteCommentMutationVariables = {
273 | input: DeleteCommentInput,
274 | };
275 |
276 | export type DeleteCommentMutation = {
277 | deleteComment: {
278 | __typename: "Comment",
279 | id: string,
280 | content: string | null,
281 | post: {
282 | __typename: "Post",
283 | id: string,
284 | title: string,
285 | } | null,
286 | } | null,
287 | };
288 |
289 | export type GetBlogQueryVariables = {
290 | id: string,
291 | };
292 |
293 | export type GetBlogQuery = {
294 | getBlog: {
295 | __typename: "Blog",
296 | id: string,
297 | name: string,
298 | posts: {
299 | __typename: "ModelPostConnection",
300 | items: Array< {
301 | __typename: "Post",
302 | id: string,
303 | title: string,
304 | } | null > | null,
305 | nextToken: string | null,
306 | } | null,
307 | } | null,
308 | };
309 |
310 | export type ListBlogsQueryVariables = {
311 | filter?: ModelBlogFilterInput | null,
312 | limit?: number | null,
313 | nextToken?: string | null,
314 | };
315 |
316 | export type ListBlogsQuery = {
317 | listBlogs: {
318 | __typename: "ModelBlogConnection",
319 | items: Array< {
320 | __typename: "Blog",
321 | id: string,
322 | name: string,
323 | posts: {
324 | __typename: "ModelPostConnection",
325 | items: Array< {
326 | __typename: "Post",
327 | id: string,
328 | title: string,
329 | } | null > | null,
330 | nextToken: string | null,
331 | } | null,
332 | } | null > | null,
333 | nextToken: string | null,
334 | } | null,
335 | };
336 |
337 | export type GetPostQueryVariables = {
338 | id: string,
339 | };
340 |
341 | export type GetPostQuery = {
342 | getPost: {
343 | __typename: "Post",
344 | id: string,
345 | title: string,
346 | blog: {
347 | __typename: "Blog",
348 | id: string,
349 | name: string,
350 | } | null,
351 | comments: {
352 | __typename: "ModelCommentConnection",
353 | items: Array< {
354 | __typename: "Comment",
355 | id: string,
356 | content: string | null,
357 | } | null > | null,
358 | nextToken: string | null,
359 | } | null,
360 | } | null,
361 | };
362 |
363 | export type ListPostsQueryVariables = {
364 | filter?: ModelPostFilterInput | null,
365 | limit?: number | null,
366 | nextToken?: string | null,
367 | };
368 |
369 | export type ListPostsQuery = {
370 | listPosts: {
371 | __typename: "ModelPostConnection",
372 | items: Array< {
373 | __typename: "Post",
374 | id: string,
375 | title: string,
376 | blog: {
377 | __typename: "Blog",
378 | id: string,
379 | name: string,
380 | } | null,
381 | comments: {
382 | __typename: "ModelCommentConnection",
383 | items: Array< {
384 | __typename: "Comment",
385 | id: string,
386 | content: string | null,
387 | } | null > | null,
388 | nextToken: string | null,
389 | } | null,
390 | } | null > | null,
391 | nextToken: string | null,
392 | } | null,
393 | };
394 |
395 | export type GetCommentQueryVariables = {
396 | id: string,
397 | };
398 |
399 | export type GetCommentQuery = {
400 | getComment: {
401 | __typename: "Comment",
402 | id: string,
403 | content: string | null,
404 | post: {
405 | __typename: "Post",
406 | id: string,
407 | title: string,
408 | } | null,
409 | } | null,
410 | };
411 |
412 | export type ListCommentsQueryVariables = {
413 | filter?: ModelCommentFilterInput | null,
414 | limit?: number | null,
415 | nextToken?: string | null,
416 | };
417 |
418 | export type ListCommentsQuery = {
419 | listComments: {
420 | __typename: "ModelCommentConnection",
421 | items: Array< {
422 | __typename: "Comment",
423 | id: string,
424 | content: string | null,
425 | post: {
426 | __typename: "Post",
427 | id: string,
428 | title: string,
429 | } | null,
430 | } | null > | null,
431 | nextToken: string | null,
432 | } | null,
433 | };
434 |
435 | export type OnCreateBlogSubscription = {
436 | onCreateBlog: {
437 | __typename: "Blog",
438 | id: string,
439 | name: string,
440 | posts: {
441 | __typename: "ModelPostConnection",
442 | items: Array< {
443 | __typename: "Post",
444 | id: string,
445 | title: string,
446 | } | null > | null,
447 | nextToken: string | null,
448 | } | null,
449 | } | null,
450 | };
451 |
452 | export type OnUpdateBlogSubscription = {
453 | onUpdateBlog: {
454 | __typename: "Blog",
455 | id: string,
456 | name: string,
457 | posts: {
458 | __typename: "ModelPostConnection",
459 | items: Array< {
460 | __typename: "Post",
461 | id: string,
462 | title: string,
463 | } | null > | null,
464 | nextToken: string | null,
465 | } | null,
466 | } | null,
467 | };
468 |
469 | export type OnDeleteBlogSubscription = {
470 | onDeleteBlog: {
471 | __typename: "Blog",
472 | id: string,
473 | name: string,
474 | posts: {
475 | __typename: "ModelPostConnection",
476 | items: Array< {
477 | __typename: "Post",
478 | id: string,
479 | title: string,
480 | } | null > | null,
481 | nextToken: string | null,
482 | } | null,
483 | } | null,
484 | };
485 |
486 | export type OnCreatePostSubscription = {
487 | onCreatePost: {
488 | __typename: "Post",
489 | id: string,
490 | title: string,
491 | blog: {
492 | __typename: "Blog",
493 | id: string,
494 | name: string,
495 | } | null,
496 | comments: {
497 | __typename: "ModelCommentConnection",
498 | items: Array< {
499 | __typename: "Comment",
500 | id: string,
501 | content: string | null,
502 | } | null > | null,
503 | nextToken: string | null,
504 | } | null,
505 | } | null,
506 | };
507 |
508 | export type OnUpdatePostSubscription = {
509 | onUpdatePost: {
510 | __typename: "Post",
511 | id: string,
512 | title: string,
513 | blog: {
514 | __typename: "Blog",
515 | id: string,
516 | name: string,
517 | } | null,
518 | comments: {
519 | __typename: "ModelCommentConnection",
520 | items: Array< {
521 | __typename: "Comment",
522 | id: string,
523 | content: string | null,
524 | } | null > | null,
525 | nextToken: string | null,
526 | } | null,
527 | } | null,
528 | };
529 |
530 | export type OnDeletePostSubscription = {
531 | onDeletePost: {
532 | __typename: "Post",
533 | id: string,
534 | title: string,
535 | blog: {
536 | __typename: "Blog",
537 | id: string,
538 | name: string,
539 | } | null,
540 | comments: {
541 | __typename: "ModelCommentConnection",
542 | items: Array< {
543 | __typename: "Comment",
544 | id: string,
545 | content: string | null,
546 | } | null > | null,
547 | nextToken: string | null,
548 | } | null,
549 | } | null,
550 | };
551 |
552 | export type OnCreateCommentSubscription = {
553 | onCreateComment: {
554 | __typename: "Comment",
555 | id: string,
556 | content: string | null,
557 | post: {
558 | __typename: "Post",
559 | id: string,
560 | title: string,
561 | } | null,
562 | } | null,
563 | };
564 |
565 | export type OnUpdateCommentSubscription = {
566 | onUpdateComment: {
567 | __typename: "Comment",
568 | id: string,
569 | content: string | null,
570 | post: {
571 | __typename: "Post",
572 | id: string,
573 | title: string,
574 | } | null,
575 | } | null,
576 | };
577 |
578 | export type OnDeleteCommentSubscription = {
579 | onDeleteComment: {
580 | __typename: "Comment",
581 | id: string,
582 | content: string | null,
583 | post: {
584 | __typename: "Post",
585 | id: string,
586 | title: string,
587 | } | null,
588 | } | null,
589 | };
590 |
--------------------------------------------------------------------------------
/src/graphql/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "data" : {
3 | "__schema" : {
4 | "queryType" : {
5 | "name" : "Query"
6 | },
7 | "mutationType" : {
8 | "name" : "Mutation"
9 | },
10 | "subscriptionType" : {
11 | "name" : "Subscription"
12 | },
13 | "types" : [ {
14 | "kind" : "OBJECT",
15 | "name" : "Query",
16 | "description" : null,
17 | "fields" : [ {
18 | "name" : "getBlog",
19 | "description" : null,
20 | "args" : [ {
21 | "name" : "id",
22 | "description" : null,
23 | "type" : {
24 | "kind" : "NON_NULL",
25 | "name" : null,
26 | "ofType" : {
27 | "kind" : "SCALAR",
28 | "name" : "ID",
29 | "ofType" : null
30 | }
31 | },
32 | "defaultValue" : null
33 | } ],
34 | "type" : {
35 | "kind" : "OBJECT",
36 | "name" : "Blog",
37 | "ofType" : null
38 | },
39 | "isDeprecated" : false,
40 | "deprecationReason" : null
41 | }, {
42 | "name" : "listBlogs",
43 | "description" : null,
44 | "args" : [ {
45 | "name" : "filter",
46 | "description" : null,
47 | "type" : {
48 | "kind" : "INPUT_OBJECT",
49 | "name" : "ModelBlogFilterInput",
50 | "ofType" : null
51 | },
52 | "defaultValue" : null
53 | }, {
54 | "name" : "limit",
55 | "description" : null,
56 | "type" : {
57 | "kind" : "SCALAR",
58 | "name" : "Int",
59 | "ofType" : null
60 | },
61 | "defaultValue" : null
62 | }, {
63 | "name" : "nextToken",
64 | "description" : null,
65 | "type" : {
66 | "kind" : "SCALAR",
67 | "name" : "String",
68 | "ofType" : null
69 | },
70 | "defaultValue" : null
71 | } ],
72 | "type" : {
73 | "kind" : "OBJECT",
74 | "name" : "ModelBlogConnection",
75 | "ofType" : null
76 | },
77 | "isDeprecated" : false,
78 | "deprecationReason" : null
79 | }, {
80 | "name" : "getPost",
81 | "description" : null,
82 | "args" : [ {
83 | "name" : "id",
84 | "description" : null,
85 | "type" : {
86 | "kind" : "NON_NULL",
87 | "name" : null,
88 | "ofType" : {
89 | "kind" : "SCALAR",
90 | "name" : "ID",
91 | "ofType" : null
92 | }
93 | },
94 | "defaultValue" : null
95 | } ],
96 | "type" : {
97 | "kind" : "OBJECT",
98 | "name" : "Post",
99 | "ofType" : null
100 | },
101 | "isDeprecated" : false,
102 | "deprecationReason" : null
103 | }, {
104 | "name" : "listPosts",
105 | "description" : null,
106 | "args" : [ {
107 | "name" : "filter",
108 | "description" : null,
109 | "type" : {
110 | "kind" : "INPUT_OBJECT",
111 | "name" : "ModelPostFilterInput",
112 | "ofType" : null
113 | },
114 | "defaultValue" : null
115 | }, {
116 | "name" : "limit",
117 | "description" : null,
118 | "type" : {
119 | "kind" : "SCALAR",
120 | "name" : "Int",
121 | "ofType" : null
122 | },
123 | "defaultValue" : null
124 | }, {
125 | "name" : "nextToken",
126 | "description" : null,
127 | "type" : {
128 | "kind" : "SCALAR",
129 | "name" : "String",
130 | "ofType" : null
131 | },
132 | "defaultValue" : null
133 | } ],
134 | "type" : {
135 | "kind" : "OBJECT",
136 | "name" : "ModelPostConnection",
137 | "ofType" : null
138 | },
139 | "isDeprecated" : false,
140 | "deprecationReason" : null
141 | }, {
142 | "name" : "getComment",
143 | "description" : null,
144 | "args" : [ {
145 | "name" : "id",
146 | "description" : null,
147 | "type" : {
148 | "kind" : "NON_NULL",
149 | "name" : null,
150 | "ofType" : {
151 | "kind" : "SCALAR",
152 | "name" : "ID",
153 | "ofType" : null
154 | }
155 | },
156 | "defaultValue" : null
157 | } ],
158 | "type" : {
159 | "kind" : "OBJECT",
160 | "name" : "Comment",
161 | "ofType" : null
162 | },
163 | "isDeprecated" : false,
164 | "deprecationReason" : null
165 | }, {
166 | "name" : "listComments",
167 | "description" : null,
168 | "args" : [ {
169 | "name" : "filter",
170 | "description" : null,
171 | "type" : {
172 | "kind" : "INPUT_OBJECT",
173 | "name" : "ModelCommentFilterInput",
174 | "ofType" : null
175 | },
176 | "defaultValue" : null
177 | }, {
178 | "name" : "limit",
179 | "description" : null,
180 | "type" : {
181 | "kind" : "SCALAR",
182 | "name" : "Int",
183 | "ofType" : null
184 | },
185 | "defaultValue" : null
186 | }, {
187 | "name" : "nextToken",
188 | "description" : null,
189 | "type" : {
190 | "kind" : "SCALAR",
191 | "name" : "String",
192 | "ofType" : null
193 | },
194 | "defaultValue" : null
195 | } ],
196 | "type" : {
197 | "kind" : "OBJECT",
198 | "name" : "ModelCommentConnection",
199 | "ofType" : null
200 | },
201 | "isDeprecated" : false,
202 | "deprecationReason" : null
203 | } ],
204 | "inputFields" : null,
205 | "interfaces" : [ ],
206 | "enumValues" : null,
207 | "possibleTypes" : null
208 | }, {
209 | "kind" : "OBJECT",
210 | "name" : "Blog",
211 | "description" : null,
212 | "fields" : [ {
213 | "name" : "id",
214 | "description" : null,
215 | "args" : [ ],
216 | "type" : {
217 | "kind" : "NON_NULL",
218 | "name" : null,
219 | "ofType" : {
220 | "kind" : "SCALAR",
221 | "name" : "ID",
222 | "ofType" : null
223 | }
224 | },
225 | "isDeprecated" : false,
226 | "deprecationReason" : null
227 | }, {
228 | "name" : "name",
229 | "description" : null,
230 | "args" : [ ],
231 | "type" : {
232 | "kind" : "NON_NULL",
233 | "name" : null,
234 | "ofType" : {
235 | "kind" : "SCALAR",
236 | "name" : "String",
237 | "ofType" : null
238 | }
239 | },
240 | "isDeprecated" : false,
241 | "deprecationReason" : null
242 | }, {
243 | "name" : "posts",
244 | "description" : null,
245 | "args" : [ {
246 | "name" : "filter",
247 | "description" : null,
248 | "type" : {
249 | "kind" : "INPUT_OBJECT",
250 | "name" : "ModelPostFilterInput",
251 | "ofType" : null
252 | },
253 | "defaultValue" : null
254 | }, {
255 | "name" : "sortDirection",
256 | "description" : null,
257 | "type" : {
258 | "kind" : "ENUM",
259 | "name" : "ModelSortDirection",
260 | "ofType" : null
261 | },
262 | "defaultValue" : null
263 | }, {
264 | "name" : "limit",
265 | "description" : null,
266 | "type" : {
267 | "kind" : "SCALAR",
268 | "name" : "Int",
269 | "ofType" : null
270 | },
271 | "defaultValue" : null
272 | }, {
273 | "name" : "nextToken",
274 | "description" : null,
275 | "type" : {
276 | "kind" : "SCALAR",
277 | "name" : "String",
278 | "ofType" : null
279 | },
280 | "defaultValue" : null
281 | } ],
282 | "type" : {
283 | "kind" : "OBJECT",
284 | "name" : "ModelPostConnection",
285 | "ofType" : null
286 | },
287 | "isDeprecated" : false,
288 | "deprecationReason" : null
289 | } ],
290 | "inputFields" : null,
291 | "interfaces" : [ ],
292 | "enumValues" : null,
293 | "possibleTypes" : null
294 | }, {
295 | "kind" : "SCALAR",
296 | "name" : "ID",
297 | "description" : "Built-in ID",
298 | "fields" : null,
299 | "inputFields" : null,
300 | "interfaces" : null,
301 | "enumValues" : null,
302 | "possibleTypes" : null
303 | }, {
304 | "kind" : "SCALAR",
305 | "name" : "String",
306 | "description" : "Built-in String",
307 | "fields" : null,
308 | "inputFields" : null,
309 | "interfaces" : null,
310 | "enumValues" : null,
311 | "possibleTypes" : null
312 | }, {
313 | "kind" : "OBJECT",
314 | "name" : "ModelPostConnection",
315 | "description" : null,
316 | "fields" : [ {
317 | "name" : "items",
318 | "description" : null,
319 | "args" : [ ],
320 | "type" : {
321 | "kind" : "LIST",
322 | "name" : null,
323 | "ofType" : {
324 | "kind" : "OBJECT",
325 | "name" : "Post",
326 | "ofType" : null
327 | }
328 | },
329 | "isDeprecated" : false,
330 | "deprecationReason" : null
331 | }, {
332 | "name" : "nextToken",
333 | "description" : null,
334 | "args" : [ ],
335 | "type" : {
336 | "kind" : "SCALAR",
337 | "name" : "String",
338 | "ofType" : null
339 | },
340 | "isDeprecated" : false,
341 | "deprecationReason" : null
342 | } ],
343 | "inputFields" : null,
344 | "interfaces" : [ ],
345 | "enumValues" : null,
346 | "possibleTypes" : null
347 | }, {
348 | "kind" : "OBJECT",
349 | "name" : "Post",
350 | "description" : null,
351 | "fields" : [ {
352 | "name" : "id",
353 | "description" : null,
354 | "args" : [ ],
355 | "type" : {
356 | "kind" : "NON_NULL",
357 | "name" : null,
358 | "ofType" : {
359 | "kind" : "SCALAR",
360 | "name" : "ID",
361 | "ofType" : null
362 | }
363 | },
364 | "isDeprecated" : false,
365 | "deprecationReason" : null
366 | }, {
367 | "name" : "title",
368 | "description" : null,
369 | "args" : [ ],
370 | "type" : {
371 | "kind" : "NON_NULL",
372 | "name" : null,
373 | "ofType" : {
374 | "kind" : "SCALAR",
375 | "name" : "String",
376 | "ofType" : null
377 | }
378 | },
379 | "isDeprecated" : false,
380 | "deprecationReason" : null
381 | }, {
382 | "name" : "blog",
383 | "description" : null,
384 | "args" : [ ],
385 | "type" : {
386 | "kind" : "OBJECT",
387 | "name" : "Blog",
388 | "ofType" : null
389 | },
390 | "isDeprecated" : false,
391 | "deprecationReason" : null
392 | }, {
393 | "name" : "comments",
394 | "description" : null,
395 | "args" : [ {
396 | "name" : "filter",
397 | "description" : null,
398 | "type" : {
399 | "kind" : "INPUT_OBJECT",
400 | "name" : "ModelCommentFilterInput",
401 | "ofType" : null
402 | },
403 | "defaultValue" : null
404 | }, {
405 | "name" : "sortDirection",
406 | "description" : null,
407 | "type" : {
408 | "kind" : "ENUM",
409 | "name" : "ModelSortDirection",
410 | "ofType" : null
411 | },
412 | "defaultValue" : null
413 | }, {
414 | "name" : "limit",
415 | "description" : null,
416 | "type" : {
417 | "kind" : "SCALAR",
418 | "name" : "Int",
419 | "ofType" : null
420 | },
421 | "defaultValue" : null
422 | }, {
423 | "name" : "nextToken",
424 | "description" : null,
425 | "type" : {
426 | "kind" : "SCALAR",
427 | "name" : "String",
428 | "ofType" : null
429 | },
430 | "defaultValue" : null
431 | } ],
432 | "type" : {
433 | "kind" : "OBJECT",
434 | "name" : "ModelCommentConnection",
435 | "ofType" : null
436 | },
437 | "isDeprecated" : false,
438 | "deprecationReason" : null
439 | } ],
440 | "inputFields" : null,
441 | "interfaces" : [ ],
442 | "enumValues" : null,
443 | "possibleTypes" : null
444 | }, {
445 | "kind" : "OBJECT",
446 | "name" : "ModelCommentConnection",
447 | "description" : null,
448 | "fields" : [ {
449 | "name" : "items",
450 | "description" : null,
451 | "args" : [ ],
452 | "type" : {
453 | "kind" : "LIST",
454 | "name" : null,
455 | "ofType" : {
456 | "kind" : "OBJECT",
457 | "name" : "Comment",
458 | "ofType" : null
459 | }
460 | },
461 | "isDeprecated" : false,
462 | "deprecationReason" : null
463 | }, {
464 | "name" : "nextToken",
465 | "description" : null,
466 | "args" : [ ],
467 | "type" : {
468 | "kind" : "SCALAR",
469 | "name" : "String",
470 | "ofType" : null
471 | },
472 | "isDeprecated" : false,
473 | "deprecationReason" : null
474 | } ],
475 | "inputFields" : null,
476 | "interfaces" : [ ],
477 | "enumValues" : null,
478 | "possibleTypes" : null
479 | }, {
480 | "kind" : "OBJECT",
481 | "name" : "Comment",
482 | "description" : null,
483 | "fields" : [ {
484 | "name" : "id",
485 | "description" : null,
486 | "args" : [ ],
487 | "type" : {
488 | "kind" : "NON_NULL",
489 | "name" : null,
490 | "ofType" : {
491 | "kind" : "SCALAR",
492 | "name" : "ID",
493 | "ofType" : null
494 | }
495 | },
496 | "isDeprecated" : false,
497 | "deprecationReason" : null
498 | }, {
499 | "name" : "content",
500 | "description" : null,
501 | "args" : [ ],
502 | "type" : {
503 | "kind" : "SCALAR",
504 | "name" : "String",
505 | "ofType" : null
506 | },
507 | "isDeprecated" : false,
508 | "deprecationReason" : null
509 | }, {
510 | "name" : "post",
511 | "description" : null,
512 | "args" : [ ],
513 | "type" : {
514 | "kind" : "OBJECT",
515 | "name" : "Post",
516 | "ofType" : null
517 | },
518 | "isDeprecated" : false,
519 | "deprecationReason" : null
520 | } ],
521 | "inputFields" : null,
522 | "interfaces" : [ ],
523 | "enumValues" : null,
524 | "possibleTypes" : null
525 | }, {
526 | "kind" : "INPUT_OBJECT",
527 | "name" : "ModelCommentFilterInput",
528 | "description" : null,
529 | "fields" : null,
530 | "inputFields" : [ {
531 | "name" : "id",
532 | "description" : null,
533 | "type" : {
534 | "kind" : "INPUT_OBJECT",
535 | "name" : "ModelIDFilterInput",
536 | "ofType" : null
537 | },
538 | "defaultValue" : null
539 | }, {
540 | "name" : "content",
541 | "description" : null,
542 | "type" : {
543 | "kind" : "INPUT_OBJECT",
544 | "name" : "ModelStringFilterInput",
545 | "ofType" : null
546 | },
547 | "defaultValue" : null
548 | }, {
549 | "name" : "and",
550 | "description" : null,
551 | "type" : {
552 | "kind" : "LIST",
553 | "name" : null,
554 | "ofType" : {
555 | "kind" : "INPUT_OBJECT",
556 | "name" : "ModelCommentFilterInput",
557 | "ofType" : null
558 | }
559 | },
560 | "defaultValue" : null
561 | }, {
562 | "name" : "or",
563 | "description" : null,
564 | "type" : {
565 | "kind" : "LIST",
566 | "name" : null,
567 | "ofType" : {
568 | "kind" : "INPUT_OBJECT",
569 | "name" : "ModelCommentFilterInput",
570 | "ofType" : null
571 | }
572 | },
573 | "defaultValue" : null
574 | }, {
575 | "name" : "not",
576 | "description" : null,
577 | "type" : {
578 | "kind" : "INPUT_OBJECT",
579 | "name" : "ModelCommentFilterInput",
580 | "ofType" : null
581 | },
582 | "defaultValue" : null
583 | } ],
584 | "interfaces" : null,
585 | "enumValues" : null,
586 | "possibleTypes" : null
587 | }, {
588 | "kind" : "INPUT_OBJECT",
589 | "name" : "ModelIDFilterInput",
590 | "description" : null,
591 | "fields" : null,
592 | "inputFields" : [ {
593 | "name" : "ne",
594 | "description" : null,
595 | "type" : {
596 | "kind" : "SCALAR",
597 | "name" : "ID",
598 | "ofType" : null
599 | },
600 | "defaultValue" : null
601 | }, {
602 | "name" : "eq",
603 | "description" : null,
604 | "type" : {
605 | "kind" : "SCALAR",
606 | "name" : "ID",
607 | "ofType" : null
608 | },
609 | "defaultValue" : null
610 | }, {
611 | "name" : "le",
612 | "description" : null,
613 | "type" : {
614 | "kind" : "SCALAR",
615 | "name" : "ID",
616 | "ofType" : null
617 | },
618 | "defaultValue" : null
619 | }, {
620 | "name" : "lt",
621 | "description" : null,
622 | "type" : {
623 | "kind" : "SCALAR",
624 | "name" : "ID",
625 | "ofType" : null
626 | },
627 | "defaultValue" : null
628 | }, {
629 | "name" : "ge",
630 | "description" : null,
631 | "type" : {
632 | "kind" : "SCALAR",
633 | "name" : "ID",
634 | "ofType" : null
635 | },
636 | "defaultValue" : null
637 | }, {
638 | "name" : "gt",
639 | "description" : null,
640 | "type" : {
641 | "kind" : "SCALAR",
642 | "name" : "ID",
643 | "ofType" : null
644 | },
645 | "defaultValue" : null
646 | }, {
647 | "name" : "contains",
648 | "description" : null,
649 | "type" : {
650 | "kind" : "SCALAR",
651 | "name" : "ID",
652 | "ofType" : null
653 | },
654 | "defaultValue" : null
655 | }, {
656 | "name" : "notContains",
657 | "description" : null,
658 | "type" : {
659 | "kind" : "SCALAR",
660 | "name" : "ID",
661 | "ofType" : null
662 | },
663 | "defaultValue" : null
664 | }, {
665 | "name" : "between",
666 | "description" : null,
667 | "type" : {
668 | "kind" : "LIST",
669 | "name" : null,
670 | "ofType" : {
671 | "kind" : "SCALAR",
672 | "name" : "ID",
673 | "ofType" : null
674 | }
675 | },
676 | "defaultValue" : null
677 | }, {
678 | "name" : "beginsWith",
679 | "description" : null,
680 | "type" : {
681 | "kind" : "SCALAR",
682 | "name" : "ID",
683 | "ofType" : null
684 | },
685 | "defaultValue" : null
686 | } ],
687 | "interfaces" : null,
688 | "enumValues" : null,
689 | "possibleTypes" : null
690 | }, {
691 | "kind" : "INPUT_OBJECT",
692 | "name" : "ModelStringFilterInput",
693 | "description" : null,
694 | "fields" : null,
695 | "inputFields" : [ {
696 | "name" : "ne",
697 | "description" : null,
698 | "type" : {
699 | "kind" : "SCALAR",
700 | "name" : "String",
701 | "ofType" : null
702 | },
703 | "defaultValue" : null
704 | }, {
705 | "name" : "eq",
706 | "description" : null,
707 | "type" : {
708 | "kind" : "SCALAR",
709 | "name" : "String",
710 | "ofType" : null
711 | },
712 | "defaultValue" : null
713 | }, {
714 | "name" : "le",
715 | "description" : null,
716 | "type" : {
717 | "kind" : "SCALAR",
718 | "name" : "String",
719 | "ofType" : null
720 | },
721 | "defaultValue" : null
722 | }, {
723 | "name" : "lt",
724 | "description" : null,
725 | "type" : {
726 | "kind" : "SCALAR",
727 | "name" : "String",
728 | "ofType" : null
729 | },
730 | "defaultValue" : null
731 | }, {
732 | "name" : "ge",
733 | "description" : null,
734 | "type" : {
735 | "kind" : "SCALAR",
736 | "name" : "String",
737 | "ofType" : null
738 | },
739 | "defaultValue" : null
740 | }, {
741 | "name" : "gt",
742 | "description" : null,
743 | "type" : {
744 | "kind" : "SCALAR",
745 | "name" : "String",
746 | "ofType" : null
747 | },
748 | "defaultValue" : null
749 | }, {
750 | "name" : "contains",
751 | "description" : null,
752 | "type" : {
753 | "kind" : "SCALAR",
754 | "name" : "String",
755 | "ofType" : null
756 | },
757 | "defaultValue" : null
758 | }, {
759 | "name" : "notContains",
760 | "description" : null,
761 | "type" : {
762 | "kind" : "SCALAR",
763 | "name" : "String",
764 | "ofType" : null
765 | },
766 | "defaultValue" : null
767 | }, {
768 | "name" : "between",
769 | "description" : null,
770 | "type" : {
771 | "kind" : "LIST",
772 | "name" : null,
773 | "ofType" : {
774 | "kind" : "SCALAR",
775 | "name" : "String",
776 | "ofType" : null
777 | }
778 | },
779 | "defaultValue" : null
780 | }, {
781 | "name" : "beginsWith",
782 | "description" : null,
783 | "type" : {
784 | "kind" : "SCALAR",
785 | "name" : "String",
786 | "ofType" : null
787 | },
788 | "defaultValue" : null
789 | } ],
790 | "interfaces" : null,
791 | "enumValues" : null,
792 | "possibleTypes" : null
793 | }, {
794 | "kind" : "ENUM",
795 | "name" : "ModelSortDirection",
796 | "description" : null,
797 | "fields" : null,
798 | "inputFields" : null,
799 | "interfaces" : null,
800 | "enumValues" : [ {
801 | "name" : "ASC",
802 | "description" : null,
803 | "isDeprecated" : false,
804 | "deprecationReason" : null
805 | }, {
806 | "name" : "DESC",
807 | "description" : null,
808 | "isDeprecated" : false,
809 | "deprecationReason" : null
810 | } ],
811 | "possibleTypes" : null
812 | }, {
813 | "kind" : "SCALAR",
814 | "name" : "Int",
815 | "description" : "Built-in Int",
816 | "fields" : null,
817 | "inputFields" : null,
818 | "interfaces" : null,
819 | "enumValues" : null,
820 | "possibleTypes" : null
821 | }, {
822 | "kind" : "INPUT_OBJECT",
823 | "name" : "ModelPostFilterInput",
824 | "description" : null,
825 | "fields" : null,
826 | "inputFields" : [ {
827 | "name" : "id",
828 | "description" : null,
829 | "type" : {
830 | "kind" : "INPUT_OBJECT",
831 | "name" : "ModelIDFilterInput",
832 | "ofType" : null
833 | },
834 | "defaultValue" : null
835 | }, {
836 | "name" : "title",
837 | "description" : null,
838 | "type" : {
839 | "kind" : "INPUT_OBJECT",
840 | "name" : "ModelStringFilterInput",
841 | "ofType" : null
842 | },
843 | "defaultValue" : null
844 | }, {
845 | "name" : "and",
846 | "description" : null,
847 | "type" : {
848 | "kind" : "LIST",
849 | "name" : null,
850 | "ofType" : {
851 | "kind" : "INPUT_OBJECT",
852 | "name" : "ModelPostFilterInput",
853 | "ofType" : null
854 | }
855 | },
856 | "defaultValue" : null
857 | }, {
858 | "name" : "or",
859 | "description" : null,
860 | "type" : {
861 | "kind" : "LIST",
862 | "name" : null,
863 | "ofType" : {
864 | "kind" : "INPUT_OBJECT",
865 | "name" : "ModelPostFilterInput",
866 | "ofType" : null
867 | }
868 | },
869 | "defaultValue" : null
870 | }, {
871 | "name" : "not",
872 | "description" : null,
873 | "type" : {
874 | "kind" : "INPUT_OBJECT",
875 | "name" : "ModelPostFilterInput",
876 | "ofType" : null
877 | },
878 | "defaultValue" : null
879 | } ],
880 | "interfaces" : null,
881 | "enumValues" : null,
882 | "possibleTypes" : null
883 | }, {
884 | "kind" : "OBJECT",
885 | "name" : "ModelBlogConnection",
886 | "description" : null,
887 | "fields" : [ {
888 | "name" : "items",
889 | "description" : null,
890 | "args" : [ ],
891 | "type" : {
892 | "kind" : "LIST",
893 | "name" : null,
894 | "ofType" : {
895 | "kind" : "OBJECT",
896 | "name" : "Blog",
897 | "ofType" : null
898 | }
899 | },
900 | "isDeprecated" : false,
901 | "deprecationReason" : null
902 | }, {
903 | "name" : "nextToken",
904 | "description" : null,
905 | "args" : [ ],
906 | "type" : {
907 | "kind" : "SCALAR",
908 | "name" : "String",
909 | "ofType" : null
910 | },
911 | "isDeprecated" : false,
912 | "deprecationReason" : null
913 | } ],
914 | "inputFields" : null,
915 | "interfaces" : [ ],
916 | "enumValues" : null,
917 | "possibleTypes" : null
918 | }, {
919 | "kind" : "INPUT_OBJECT",
920 | "name" : "ModelBlogFilterInput",
921 | "description" : null,
922 | "fields" : null,
923 | "inputFields" : [ {
924 | "name" : "id",
925 | "description" : null,
926 | "type" : {
927 | "kind" : "INPUT_OBJECT",
928 | "name" : "ModelIDFilterInput",
929 | "ofType" : null
930 | },
931 | "defaultValue" : null
932 | }, {
933 | "name" : "name",
934 | "description" : null,
935 | "type" : {
936 | "kind" : "INPUT_OBJECT",
937 | "name" : "ModelStringFilterInput",
938 | "ofType" : null
939 | },
940 | "defaultValue" : null
941 | }, {
942 | "name" : "and",
943 | "description" : null,
944 | "type" : {
945 | "kind" : "LIST",
946 | "name" : null,
947 | "ofType" : {
948 | "kind" : "INPUT_OBJECT",
949 | "name" : "ModelBlogFilterInput",
950 | "ofType" : null
951 | }
952 | },
953 | "defaultValue" : null
954 | }, {
955 | "name" : "or",
956 | "description" : null,
957 | "type" : {
958 | "kind" : "LIST",
959 | "name" : null,
960 | "ofType" : {
961 | "kind" : "INPUT_OBJECT",
962 | "name" : "ModelBlogFilterInput",
963 | "ofType" : null
964 | }
965 | },
966 | "defaultValue" : null
967 | }, {
968 | "name" : "not",
969 | "description" : null,
970 | "type" : {
971 | "kind" : "INPUT_OBJECT",
972 | "name" : "ModelBlogFilterInput",
973 | "ofType" : null
974 | },
975 | "defaultValue" : null
976 | } ],
977 | "interfaces" : null,
978 | "enumValues" : null,
979 | "possibleTypes" : null
980 | }, {
981 | "kind" : "OBJECT",
982 | "name" : "Mutation",
983 | "description" : null,
984 | "fields" : [ {
985 | "name" : "createBlog",
986 | "description" : null,
987 | "args" : [ {
988 | "name" : "input",
989 | "description" : null,
990 | "type" : {
991 | "kind" : "NON_NULL",
992 | "name" : null,
993 | "ofType" : {
994 | "kind" : "INPUT_OBJECT",
995 | "name" : "CreateBlogInput",
996 | "ofType" : null
997 | }
998 | },
999 | "defaultValue" : null
1000 | } ],
1001 | "type" : {
1002 | "kind" : "OBJECT",
1003 | "name" : "Blog",
1004 | "ofType" : null
1005 | },
1006 | "isDeprecated" : false,
1007 | "deprecationReason" : null
1008 | }, {
1009 | "name" : "updateBlog",
1010 | "description" : null,
1011 | "args" : [ {
1012 | "name" : "input",
1013 | "description" : null,
1014 | "type" : {
1015 | "kind" : "NON_NULL",
1016 | "name" : null,
1017 | "ofType" : {
1018 | "kind" : "INPUT_OBJECT",
1019 | "name" : "UpdateBlogInput",
1020 | "ofType" : null
1021 | }
1022 | },
1023 | "defaultValue" : null
1024 | } ],
1025 | "type" : {
1026 | "kind" : "OBJECT",
1027 | "name" : "Blog",
1028 | "ofType" : null
1029 | },
1030 | "isDeprecated" : false,
1031 | "deprecationReason" : null
1032 | }, {
1033 | "name" : "deleteBlog",
1034 | "description" : null,
1035 | "args" : [ {
1036 | "name" : "input",
1037 | "description" : null,
1038 | "type" : {
1039 | "kind" : "NON_NULL",
1040 | "name" : null,
1041 | "ofType" : {
1042 | "kind" : "INPUT_OBJECT",
1043 | "name" : "DeleteBlogInput",
1044 | "ofType" : null
1045 | }
1046 | },
1047 | "defaultValue" : null
1048 | } ],
1049 | "type" : {
1050 | "kind" : "OBJECT",
1051 | "name" : "Blog",
1052 | "ofType" : null
1053 | },
1054 | "isDeprecated" : false,
1055 | "deprecationReason" : null
1056 | }, {
1057 | "name" : "createPost",
1058 | "description" : null,
1059 | "args" : [ {
1060 | "name" : "input",
1061 | "description" : null,
1062 | "type" : {
1063 | "kind" : "NON_NULL",
1064 | "name" : null,
1065 | "ofType" : {
1066 | "kind" : "INPUT_OBJECT",
1067 | "name" : "CreatePostInput",
1068 | "ofType" : null
1069 | }
1070 | },
1071 | "defaultValue" : null
1072 | } ],
1073 | "type" : {
1074 | "kind" : "OBJECT",
1075 | "name" : "Post",
1076 | "ofType" : null
1077 | },
1078 | "isDeprecated" : false,
1079 | "deprecationReason" : null
1080 | }, {
1081 | "name" : "updatePost",
1082 | "description" : null,
1083 | "args" : [ {
1084 | "name" : "input",
1085 | "description" : null,
1086 | "type" : {
1087 | "kind" : "NON_NULL",
1088 | "name" : null,
1089 | "ofType" : {
1090 | "kind" : "INPUT_OBJECT",
1091 | "name" : "UpdatePostInput",
1092 | "ofType" : null
1093 | }
1094 | },
1095 | "defaultValue" : null
1096 | } ],
1097 | "type" : {
1098 | "kind" : "OBJECT",
1099 | "name" : "Post",
1100 | "ofType" : null
1101 | },
1102 | "isDeprecated" : false,
1103 | "deprecationReason" : null
1104 | }, {
1105 | "name" : "deletePost",
1106 | "description" : null,
1107 | "args" : [ {
1108 | "name" : "input",
1109 | "description" : null,
1110 | "type" : {
1111 | "kind" : "NON_NULL",
1112 | "name" : null,
1113 | "ofType" : {
1114 | "kind" : "INPUT_OBJECT",
1115 | "name" : "DeletePostInput",
1116 | "ofType" : null
1117 | }
1118 | },
1119 | "defaultValue" : null
1120 | } ],
1121 | "type" : {
1122 | "kind" : "OBJECT",
1123 | "name" : "Post",
1124 | "ofType" : null
1125 | },
1126 | "isDeprecated" : false,
1127 | "deprecationReason" : null
1128 | }, {
1129 | "name" : "createComment",
1130 | "description" : null,
1131 | "args" : [ {
1132 | "name" : "input",
1133 | "description" : null,
1134 | "type" : {
1135 | "kind" : "NON_NULL",
1136 | "name" : null,
1137 | "ofType" : {
1138 | "kind" : "INPUT_OBJECT",
1139 | "name" : "CreateCommentInput",
1140 | "ofType" : null
1141 | }
1142 | },
1143 | "defaultValue" : null
1144 | } ],
1145 | "type" : {
1146 | "kind" : "OBJECT",
1147 | "name" : "Comment",
1148 | "ofType" : null
1149 | },
1150 | "isDeprecated" : false,
1151 | "deprecationReason" : null
1152 | }, {
1153 | "name" : "updateComment",
1154 | "description" : null,
1155 | "args" : [ {
1156 | "name" : "input",
1157 | "description" : null,
1158 | "type" : {
1159 | "kind" : "NON_NULL",
1160 | "name" : null,
1161 | "ofType" : {
1162 | "kind" : "INPUT_OBJECT",
1163 | "name" : "UpdateCommentInput",
1164 | "ofType" : null
1165 | }
1166 | },
1167 | "defaultValue" : null
1168 | } ],
1169 | "type" : {
1170 | "kind" : "OBJECT",
1171 | "name" : "Comment",
1172 | "ofType" : null
1173 | },
1174 | "isDeprecated" : false,
1175 | "deprecationReason" : null
1176 | }, {
1177 | "name" : "deleteComment",
1178 | "description" : null,
1179 | "args" : [ {
1180 | "name" : "input",
1181 | "description" : null,
1182 | "type" : {
1183 | "kind" : "NON_NULL",
1184 | "name" : null,
1185 | "ofType" : {
1186 | "kind" : "INPUT_OBJECT",
1187 | "name" : "DeleteCommentInput",
1188 | "ofType" : null
1189 | }
1190 | },
1191 | "defaultValue" : null
1192 | } ],
1193 | "type" : {
1194 | "kind" : "OBJECT",
1195 | "name" : "Comment",
1196 | "ofType" : null
1197 | },
1198 | "isDeprecated" : false,
1199 | "deprecationReason" : null
1200 | } ],
1201 | "inputFields" : null,
1202 | "interfaces" : [ ],
1203 | "enumValues" : null,
1204 | "possibleTypes" : null
1205 | }, {
1206 | "kind" : "INPUT_OBJECT",
1207 | "name" : "CreateBlogInput",
1208 | "description" : null,
1209 | "fields" : null,
1210 | "inputFields" : [ {
1211 | "name" : "name",
1212 | "description" : null,
1213 | "type" : {
1214 | "kind" : "NON_NULL",
1215 | "name" : null,
1216 | "ofType" : {
1217 | "kind" : "SCALAR",
1218 | "name" : "String",
1219 | "ofType" : null
1220 | }
1221 | },
1222 | "defaultValue" : null
1223 | } ],
1224 | "interfaces" : null,
1225 | "enumValues" : null,
1226 | "possibleTypes" : null
1227 | }, {
1228 | "kind" : "INPUT_OBJECT",
1229 | "name" : "UpdateBlogInput",
1230 | "description" : null,
1231 | "fields" : null,
1232 | "inputFields" : [ {
1233 | "name" : "id",
1234 | "description" : null,
1235 | "type" : {
1236 | "kind" : "NON_NULL",
1237 | "name" : null,
1238 | "ofType" : {
1239 | "kind" : "SCALAR",
1240 | "name" : "ID",
1241 | "ofType" : null
1242 | }
1243 | },
1244 | "defaultValue" : null
1245 | }, {
1246 | "name" : "name",
1247 | "description" : null,
1248 | "type" : {
1249 | "kind" : "SCALAR",
1250 | "name" : "String",
1251 | "ofType" : null
1252 | },
1253 | "defaultValue" : null
1254 | } ],
1255 | "interfaces" : null,
1256 | "enumValues" : null,
1257 | "possibleTypes" : null
1258 | }, {
1259 | "kind" : "INPUT_OBJECT",
1260 | "name" : "DeleteBlogInput",
1261 | "description" : null,
1262 | "fields" : null,
1263 | "inputFields" : [ {
1264 | "name" : "id",
1265 | "description" : null,
1266 | "type" : {
1267 | "kind" : "SCALAR",
1268 | "name" : "ID",
1269 | "ofType" : null
1270 | },
1271 | "defaultValue" : null
1272 | } ],
1273 | "interfaces" : null,
1274 | "enumValues" : null,
1275 | "possibleTypes" : null
1276 | }, {
1277 | "kind" : "INPUT_OBJECT",
1278 | "name" : "CreatePostInput",
1279 | "description" : null,
1280 | "fields" : null,
1281 | "inputFields" : [ {
1282 | "name" : "title",
1283 | "description" : null,
1284 | "type" : {
1285 | "kind" : "NON_NULL",
1286 | "name" : null,
1287 | "ofType" : {
1288 | "kind" : "SCALAR",
1289 | "name" : "String",
1290 | "ofType" : null
1291 | }
1292 | },
1293 | "defaultValue" : null
1294 | }, {
1295 | "name" : "postBlogId",
1296 | "description" : null,
1297 | "type" : {
1298 | "kind" : "SCALAR",
1299 | "name" : "ID",
1300 | "ofType" : null
1301 | },
1302 | "defaultValue" : null
1303 | } ],
1304 | "interfaces" : null,
1305 | "enumValues" : null,
1306 | "possibleTypes" : null
1307 | }, {
1308 | "kind" : "INPUT_OBJECT",
1309 | "name" : "UpdatePostInput",
1310 | "description" : null,
1311 | "fields" : null,
1312 | "inputFields" : [ {
1313 | "name" : "id",
1314 | "description" : null,
1315 | "type" : {
1316 | "kind" : "NON_NULL",
1317 | "name" : null,
1318 | "ofType" : {
1319 | "kind" : "SCALAR",
1320 | "name" : "ID",
1321 | "ofType" : null
1322 | }
1323 | },
1324 | "defaultValue" : null
1325 | }, {
1326 | "name" : "title",
1327 | "description" : null,
1328 | "type" : {
1329 | "kind" : "SCALAR",
1330 | "name" : "String",
1331 | "ofType" : null
1332 | },
1333 | "defaultValue" : null
1334 | }, {
1335 | "name" : "postBlogId",
1336 | "description" : null,
1337 | "type" : {
1338 | "kind" : "SCALAR",
1339 | "name" : "ID",
1340 | "ofType" : null
1341 | },
1342 | "defaultValue" : null
1343 | } ],
1344 | "interfaces" : null,
1345 | "enumValues" : null,
1346 | "possibleTypes" : null
1347 | }, {
1348 | "kind" : "INPUT_OBJECT",
1349 | "name" : "DeletePostInput",
1350 | "description" : null,
1351 | "fields" : null,
1352 | "inputFields" : [ {
1353 | "name" : "id",
1354 | "description" : null,
1355 | "type" : {
1356 | "kind" : "SCALAR",
1357 | "name" : "ID",
1358 | "ofType" : null
1359 | },
1360 | "defaultValue" : null
1361 | } ],
1362 | "interfaces" : null,
1363 | "enumValues" : null,
1364 | "possibleTypes" : null
1365 | }, {
1366 | "kind" : "INPUT_OBJECT",
1367 | "name" : "CreateCommentInput",
1368 | "description" : null,
1369 | "fields" : null,
1370 | "inputFields" : [ {
1371 | "name" : "content",
1372 | "description" : null,
1373 | "type" : {
1374 | "kind" : "SCALAR",
1375 | "name" : "String",
1376 | "ofType" : null
1377 | },
1378 | "defaultValue" : null
1379 | }, {
1380 | "name" : "commentPostId",
1381 | "description" : null,
1382 | "type" : {
1383 | "kind" : "SCALAR",
1384 | "name" : "ID",
1385 | "ofType" : null
1386 | },
1387 | "defaultValue" : null
1388 | } ],
1389 | "interfaces" : null,
1390 | "enumValues" : null,
1391 | "possibleTypes" : null
1392 | }, {
1393 | "kind" : "INPUT_OBJECT",
1394 | "name" : "UpdateCommentInput",
1395 | "description" : null,
1396 | "fields" : null,
1397 | "inputFields" : [ {
1398 | "name" : "id",
1399 | "description" : null,
1400 | "type" : {
1401 | "kind" : "NON_NULL",
1402 | "name" : null,
1403 | "ofType" : {
1404 | "kind" : "SCALAR",
1405 | "name" : "ID",
1406 | "ofType" : null
1407 | }
1408 | },
1409 | "defaultValue" : null
1410 | }, {
1411 | "name" : "content",
1412 | "description" : null,
1413 | "type" : {
1414 | "kind" : "SCALAR",
1415 | "name" : "String",
1416 | "ofType" : null
1417 | },
1418 | "defaultValue" : null
1419 | }, {
1420 | "name" : "commentPostId",
1421 | "description" : null,
1422 | "type" : {
1423 | "kind" : "SCALAR",
1424 | "name" : "ID",
1425 | "ofType" : null
1426 | },
1427 | "defaultValue" : null
1428 | } ],
1429 | "interfaces" : null,
1430 | "enumValues" : null,
1431 | "possibleTypes" : null
1432 | }, {
1433 | "kind" : "INPUT_OBJECT",
1434 | "name" : "DeleteCommentInput",
1435 | "description" : null,
1436 | "fields" : null,
1437 | "inputFields" : [ {
1438 | "name" : "id",
1439 | "description" : null,
1440 | "type" : {
1441 | "kind" : "SCALAR",
1442 | "name" : "ID",
1443 | "ofType" : null
1444 | },
1445 | "defaultValue" : null
1446 | } ],
1447 | "interfaces" : null,
1448 | "enumValues" : null,
1449 | "possibleTypes" : null
1450 | }, {
1451 | "kind" : "OBJECT",
1452 | "name" : "Subscription",
1453 | "description" : null,
1454 | "fields" : [ {
1455 | "name" : "onCreateBlog",
1456 | "description" : null,
1457 | "args" : [ ],
1458 | "type" : {
1459 | "kind" : "OBJECT",
1460 | "name" : "Blog",
1461 | "ofType" : null
1462 | },
1463 | "isDeprecated" : false,
1464 | "deprecationReason" : null
1465 | }, {
1466 | "name" : "onUpdateBlog",
1467 | "description" : null,
1468 | "args" : [ ],
1469 | "type" : {
1470 | "kind" : "OBJECT",
1471 | "name" : "Blog",
1472 | "ofType" : null
1473 | },
1474 | "isDeprecated" : false,
1475 | "deprecationReason" : null
1476 | }, {
1477 | "name" : "onDeleteBlog",
1478 | "description" : null,
1479 | "args" : [ ],
1480 | "type" : {
1481 | "kind" : "OBJECT",
1482 | "name" : "Blog",
1483 | "ofType" : null
1484 | },
1485 | "isDeprecated" : false,
1486 | "deprecationReason" : null
1487 | }, {
1488 | "name" : "onCreatePost",
1489 | "description" : null,
1490 | "args" : [ ],
1491 | "type" : {
1492 | "kind" : "OBJECT",
1493 | "name" : "Post",
1494 | "ofType" : null
1495 | },
1496 | "isDeprecated" : false,
1497 | "deprecationReason" : null
1498 | }, {
1499 | "name" : "onUpdatePost",
1500 | "description" : null,
1501 | "args" : [ ],
1502 | "type" : {
1503 | "kind" : "OBJECT",
1504 | "name" : "Post",
1505 | "ofType" : null
1506 | },
1507 | "isDeprecated" : false,
1508 | "deprecationReason" : null
1509 | }, {
1510 | "name" : "onDeletePost",
1511 | "description" : null,
1512 | "args" : [ ],
1513 | "type" : {
1514 | "kind" : "OBJECT",
1515 | "name" : "Post",
1516 | "ofType" : null
1517 | },
1518 | "isDeprecated" : false,
1519 | "deprecationReason" : null
1520 | }, {
1521 | "name" : "onCreateComment",
1522 | "description" : null,
1523 | "args" : [ ],
1524 | "type" : {
1525 | "kind" : "OBJECT",
1526 | "name" : "Comment",
1527 | "ofType" : null
1528 | },
1529 | "isDeprecated" : false,
1530 | "deprecationReason" : null
1531 | }, {
1532 | "name" : "onUpdateComment",
1533 | "description" : null,
1534 | "args" : [ ],
1535 | "type" : {
1536 | "kind" : "OBJECT",
1537 | "name" : "Comment",
1538 | "ofType" : null
1539 | },
1540 | "isDeprecated" : false,
1541 | "deprecationReason" : null
1542 | }, {
1543 | "name" : "onDeleteComment",
1544 | "description" : null,
1545 | "args" : [ ],
1546 | "type" : {
1547 | "kind" : "OBJECT",
1548 | "name" : "Comment",
1549 | "ofType" : null
1550 | },
1551 | "isDeprecated" : false,
1552 | "deprecationReason" : null
1553 | } ],
1554 | "inputFields" : null,
1555 | "interfaces" : [ ],
1556 | "enumValues" : null,
1557 | "possibleTypes" : null
1558 | }, {
1559 | "kind" : "INPUT_OBJECT",
1560 | "name" : "ModelIntFilterInput",
1561 | "description" : null,
1562 | "fields" : null,
1563 | "inputFields" : [ {
1564 | "name" : "ne",
1565 | "description" : null,
1566 | "type" : {
1567 | "kind" : "SCALAR",
1568 | "name" : "Int",
1569 | "ofType" : null
1570 | },
1571 | "defaultValue" : null
1572 | }, {
1573 | "name" : "eq",
1574 | "description" : null,
1575 | "type" : {
1576 | "kind" : "SCALAR",
1577 | "name" : "Int",
1578 | "ofType" : null
1579 | },
1580 | "defaultValue" : null
1581 | }, {
1582 | "name" : "le",
1583 | "description" : null,
1584 | "type" : {
1585 | "kind" : "SCALAR",
1586 | "name" : "Int",
1587 | "ofType" : null
1588 | },
1589 | "defaultValue" : null
1590 | }, {
1591 | "name" : "lt",
1592 | "description" : null,
1593 | "type" : {
1594 | "kind" : "SCALAR",
1595 | "name" : "Int",
1596 | "ofType" : null
1597 | },
1598 | "defaultValue" : null
1599 | }, {
1600 | "name" : "ge",
1601 | "description" : null,
1602 | "type" : {
1603 | "kind" : "SCALAR",
1604 | "name" : "Int",
1605 | "ofType" : null
1606 | },
1607 | "defaultValue" : null
1608 | }, {
1609 | "name" : "gt",
1610 | "description" : null,
1611 | "type" : {
1612 | "kind" : "SCALAR",
1613 | "name" : "Int",
1614 | "ofType" : null
1615 | },
1616 | "defaultValue" : null
1617 | }, {
1618 | "name" : "contains",
1619 | "description" : null,
1620 | "type" : {
1621 | "kind" : "SCALAR",
1622 | "name" : "Int",
1623 | "ofType" : null
1624 | },
1625 | "defaultValue" : null
1626 | }, {
1627 | "name" : "notContains",
1628 | "description" : null,
1629 | "type" : {
1630 | "kind" : "SCALAR",
1631 | "name" : "Int",
1632 | "ofType" : null
1633 | },
1634 | "defaultValue" : null
1635 | }, {
1636 | "name" : "between",
1637 | "description" : null,
1638 | "type" : {
1639 | "kind" : "LIST",
1640 | "name" : null,
1641 | "ofType" : {
1642 | "kind" : "SCALAR",
1643 | "name" : "Int",
1644 | "ofType" : null
1645 | }
1646 | },
1647 | "defaultValue" : null
1648 | } ],
1649 | "interfaces" : null,
1650 | "enumValues" : null,
1651 | "possibleTypes" : null
1652 | }, {
1653 | "kind" : "INPUT_OBJECT",
1654 | "name" : "ModelFloatFilterInput",
1655 | "description" : null,
1656 | "fields" : null,
1657 | "inputFields" : [ {
1658 | "name" : "ne",
1659 | "description" : null,
1660 | "type" : {
1661 | "kind" : "SCALAR",
1662 | "name" : "Float",
1663 | "ofType" : null
1664 | },
1665 | "defaultValue" : null
1666 | }, {
1667 | "name" : "eq",
1668 | "description" : null,
1669 | "type" : {
1670 | "kind" : "SCALAR",
1671 | "name" : "Float",
1672 | "ofType" : null
1673 | },
1674 | "defaultValue" : null
1675 | }, {
1676 | "name" : "le",
1677 | "description" : null,
1678 | "type" : {
1679 | "kind" : "SCALAR",
1680 | "name" : "Float",
1681 | "ofType" : null
1682 | },
1683 | "defaultValue" : null
1684 | }, {
1685 | "name" : "lt",
1686 | "description" : null,
1687 | "type" : {
1688 | "kind" : "SCALAR",
1689 | "name" : "Float",
1690 | "ofType" : null
1691 | },
1692 | "defaultValue" : null
1693 | }, {
1694 | "name" : "ge",
1695 | "description" : null,
1696 | "type" : {
1697 | "kind" : "SCALAR",
1698 | "name" : "Float",
1699 | "ofType" : null
1700 | },
1701 | "defaultValue" : null
1702 | }, {
1703 | "name" : "gt",
1704 | "description" : null,
1705 | "type" : {
1706 | "kind" : "SCALAR",
1707 | "name" : "Float",
1708 | "ofType" : null
1709 | },
1710 | "defaultValue" : null
1711 | }, {
1712 | "name" : "contains",
1713 | "description" : null,
1714 | "type" : {
1715 | "kind" : "SCALAR",
1716 | "name" : "Float",
1717 | "ofType" : null
1718 | },
1719 | "defaultValue" : null
1720 | }, {
1721 | "name" : "notContains",
1722 | "description" : null,
1723 | "type" : {
1724 | "kind" : "SCALAR",
1725 | "name" : "Float",
1726 | "ofType" : null
1727 | },
1728 | "defaultValue" : null
1729 | }, {
1730 | "name" : "between",
1731 | "description" : null,
1732 | "type" : {
1733 | "kind" : "LIST",
1734 | "name" : null,
1735 | "ofType" : {
1736 | "kind" : "SCALAR",
1737 | "name" : "Float",
1738 | "ofType" : null
1739 | }
1740 | },
1741 | "defaultValue" : null
1742 | } ],
1743 | "interfaces" : null,
1744 | "enumValues" : null,
1745 | "possibleTypes" : null
1746 | }, {
1747 | "kind" : "SCALAR",
1748 | "name" : "Float",
1749 | "description" : "Built-in Float",
1750 | "fields" : null,
1751 | "inputFields" : null,
1752 | "interfaces" : null,
1753 | "enumValues" : null,
1754 | "possibleTypes" : null
1755 | }, {
1756 | "kind" : "INPUT_OBJECT",
1757 | "name" : "ModelBooleanFilterInput",
1758 | "description" : null,
1759 | "fields" : null,
1760 | "inputFields" : [ {
1761 | "name" : "ne",
1762 | "description" : null,
1763 | "type" : {
1764 | "kind" : "SCALAR",
1765 | "name" : "Boolean",
1766 | "ofType" : null
1767 | },
1768 | "defaultValue" : null
1769 | }, {
1770 | "name" : "eq",
1771 | "description" : null,
1772 | "type" : {
1773 | "kind" : "SCALAR",
1774 | "name" : "Boolean",
1775 | "ofType" : null
1776 | },
1777 | "defaultValue" : null
1778 | } ],
1779 | "interfaces" : null,
1780 | "enumValues" : null,
1781 | "possibleTypes" : null
1782 | }, {
1783 | "kind" : "SCALAR",
1784 | "name" : "Boolean",
1785 | "description" : "Built-in Boolean",
1786 | "fields" : null,
1787 | "inputFields" : null,
1788 | "interfaces" : null,
1789 | "enumValues" : null,
1790 | "possibleTypes" : null
1791 | }, {
1792 | "kind" : "OBJECT",
1793 | "name" : "__Schema",
1794 | "description" : "A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations.",
1795 | "fields" : [ {
1796 | "name" : "types",
1797 | "description" : "A list of all types supported by this server.",
1798 | "args" : [ ],
1799 | "type" : {
1800 | "kind" : "NON_NULL",
1801 | "name" : null,
1802 | "ofType" : {
1803 | "kind" : "LIST",
1804 | "name" : null,
1805 | "ofType" : {
1806 | "kind" : "NON_NULL",
1807 | "name" : null,
1808 | "ofType" : {
1809 | "kind" : "OBJECT",
1810 | "name" : "__Type",
1811 | "ofType" : null
1812 | }
1813 | }
1814 | }
1815 | },
1816 | "isDeprecated" : false,
1817 | "deprecationReason" : null
1818 | }, {
1819 | "name" : "queryType",
1820 | "description" : "The type that query operations will be rooted at.",
1821 | "args" : [ ],
1822 | "type" : {
1823 | "kind" : "NON_NULL",
1824 | "name" : null,
1825 | "ofType" : {
1826 | "kind" : "OBJECT",
1827 | "name" : "__Type",
1828 | "ofType" : null
1829 | }
1830 | },
1831 | "isDeprecated" : false,
1832 | "deprecationReason" : null
1833 | }, {
1834 | "name" : "mutationType",
1835 | "description" : "If this server supports mutation, the type that mutation operations will be rooted at.",
1836 | "args" : [ ],
1837 | "type" : {
1838 | "kind" : "OBJECT",
1839 | "name" : "__Type",
1840 | "ofType" : null
1841 | },
1842 | "isDeprecated" : false,
1843 | "deprecationReason" : null
1844 | }, {
1845 | "name" : "directives",
1846 | "description" : "'A list of all directives supported by this server.",
1847 | "args" : [ ],
1848 | "type" : {
1849 | "kind" : "NON_NULL",
1850 | "name" : null,
1851 | "ofType" : {
1852 | "kind" : "LIST",
1853 | "name" : null,
1854 | "ofType" : {
1855 | "kind" : "NON_NULL",
1856 | "name" : null,
1857 | "ofType" : {
1858 | "kind" : "OBJECT",
1859 | "name" : "__Directive",
1860 | "ofType" : null
1861 | }
1862 | }
1863 | }
1864 | },
1865 | "isDeprecated" : false,
1866 | "deprecationReason" : null
1867 | }, {
1868 | "name" : "subscriptionType",
1869 | "description" : "'If this server support subscription, the type that subscription operations will be rooted at.",
1870 | "args" : [ ],
1871 | "type" : {
1872 | "kind" : "OBJECT",
1873 | "name" : "__Type",
1874 | "ofType" : null
1875 | },
1876 | "isDeprecated" : false,
1877 | "deprecationReason" : null
1878 | } ],
1879 | "inputFields" : null,
1880 | "interfaces" : [ ],
1881 | "enumValues" : null,
1882 | "possibleTypes" : null
1883 | }, {
1884 | "kind" : "OBJECT",
1885 | "name" : "__Type",
1886 | "description" : null,
1887 | "fields" : [ {
1888 | "name" : "kind",
1889 | "description" : null,
1890 | "args" : [ ],
1891 | "type" : {
1892 | "kind" : "NON_NULL",
1893 | "name" : null,
1894 | "ofType" : {
1895 | "kind" : "ENUM",
1896 | "name" : "__TypeKind",
1897 | "ofType" : null
1898 | }
1899 | },
1900 | "isDeprecated" : false,
1901 | "deprecationReason" : null
1902 | }, {
1903 | "name" : "name",
1904 | "description" : null,
1905 | "args" : [ ],
1906 | "type" : {
1907 | "kind" : "SCALAR",
1908 | "name" : "String",
1909 | "ofType" : null
1910 | },
1911 | "isDeprecated" : false,
1912 | "deprecationReason" : null
1913 | }, {
1914 | "name" : "description",
1915 | "description" : null,
1916 | "args" : [ ],
1917 | "type" : {
1918 | "kind" : "SCALAR",
1919 | "name" : "String",
1920 | "ofType" : null
1921 | },
1922 | "isDeprecated" : false,
1923 | "deprecationReason" : null
1924 | }, {
1925 | "name" : "fields",
1926 | "description" : null,
1927 | "args" : [ {
1928 | "name" : "includeDeprecated",
1929 | "description" : null,
1930 | "type" : {
1931 | "kind" : "SCALAR",
1932 | "name" : "Boolean",
1933 | "ofType" : null
1934 | },
1935 | "defaultValue" : "false"
1936 | } ],
1937 | "type" : {
1938 | "kind" : "LIST",
1939 | "name" : null,
1940 | "ofType" : {
1941 | "kind" : "NON_NULL",
1942 | "name" : null,
1943 | "ofType" : {
1944 | "kind" : "OBJECT",
1945 | "name" : "__Field",
1946 | "ofType" : null
1947 | }
1948 | }
1949 | },
1950 | "isDeprecated" : false,
1951 | "deprecationReason" : null
1952 | }, {
1953 | "name" : "interfaces",
1954 | "description" : null,
1955 | "args" : [ ],
1956 | "type" : {
1957 | "kind" : "LIST",
1958 | "name" : null,
1959 | "ofType" : {
1960 | "kind" : "NON_NULL",
1961 | "name" : null,
1962 | "ofType" : {
1963 | "kind" : "OBJECT",
1964 | "name" : "__Type",
1965 | "ofType" : null
1966 | }
1967 | }
1968 | },
1969 | "isDeprecated" : false,
1970 | "deprecationReason" : null
1971 | }, {
1972 | "name" : "possibleTypes",
1973 | "description" : null,
1974 | "args" : [ ],
1975 | "type" : {
1976 | "kind" : "LIST",
1977 | "name" : null,
1978 | "ofType" : {
1979 | "kind" : "NON_NULL",
1980 | "name" : null,
1981 | "ofType" : {
1982 | "kind" : "OBJECT",
1983 | "name" : "__Type",
1984 | "ofType" : null
1985 | }
1986 | }
1987 | },
1988 | "isDeprecated" : false,
1989 | "deprecationReason" : null
1990 | }, {
1991 | "name" : "enumValues",
1992 | "description" : null,
1993 | "args" : [ {
1994 | "name" : "includeDeprecated",
1995 | "description" : null,
1996 | "type" : {
1997 | "kind" : "SCALAR",
1998 | "name" : "Boolean",
1999 | "ofType" : null
2000 | },
2001 | "defaultValue" : "false"
2002 | } ],
2003 | "type" : {
2004 | "kind" : "LIST",
2005 | "name" : null,
2006 | "ofType" : {
2007 | "kind" : "NON_NULL",
2008 | "name" : null,
2009 | "ofType" : {
2010 | "kind" : "OBJECT",
2011 | "name" : "__EnumValue",
2012 | "ofType" : null
2013 | }
2014 | }
2015 | },
2016 | "isDeprecated" : false,
2017 | "deprecationReason" : null
2018 | }, {
2019 | "name" : "inputFields",
2020 | "description" : null,
2021 | "args" : [ ],
2022 | "type" : {
2023 | "kind" : "LIST",
2024 | "name" : null,
2025 | "ofType" : {
2026 | "kind" : "NON_NULL",
2027 | "name" : null,
2028 | "ofType" : {
2029 | "kind" : "OBJECT",
2030 | "name" : "__InputValue",
2031 | "ofType" : null
2032 | }
2033 | }
2034 | },
2035 | "isDeprecated" : false,
2036 | "deprecationReason" : null
2037 | }, {
2038 | "name" : "ofType",
2039 | "description" : null,
2040 | "args" : [ ],
2041 | "type" : {
2042 | "kind" : "OBJECT",
2043 | "name" : "__Type",
2044 | "ofType" : null
2045 | },
2046 | "isDeprecated" : false,
2047 | "deprecationReason" : null
2048 | } ],
2049 | "inputFields" : null,
2050 | "interfaces" : [ ],
2051 | "enumValues" : null,
2052 | "possibleTypes" : null
2053 | }, {
2054 | "kind" : "ENUM",
2055 | "name" : "__TypeKind",
2056 | "description" : "An enum describing what kind of type a given __Type is",
2057 | "fields" : null,
2058 | "inputFields" : null,
2059 | "interfaces" : null,
2060 | "enumValues" : [ {
2061 | "name" : "SCALAR",
2062 | "description" : "Indicates this type is a scalar.",
2063 | "isDeprecated" : false,
2064 | "deprecationReason" : null
2065 | }, {
2066 | "name" : "OBJECT",
2067 | "description" : "Indicates this type is an object. `fields` and `interfaces` are valid fields.",
2068 | "isDeprecated" : false,
2069 | "deprecationReason" : null
2070 | }, {
2071 | "name" : "INTERFACE",
2072 | "description" : "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.",
2073 | "isDeprecated" : false,
2074 | "deprecationReason" : null
2075 | }, {
2076 | "name" : "UNION",
2077 | "description" : "Indicates this type is a union. `possibleTypes` is a valid field.",
2078 | "isDeprecated" : false,
2079 | "deprecationReason" : null
2080 | }, {
2081 | "name" : "ENUM",
2082 | "description" : "Indicates this type is an enum. `enumValues` is a valid field.",
2083 | "isDeprecated" : false,
2084 | "deprecationReason" : null
2085 | }, {
2086 | "name" : "INPUT_OBJECT",
2087 | "description" : "Indicates this type is an input object. `inputFields` is a valid field.",
2088 | "isDeprecated" : false,
2089 | "deprecationReason" : null
2090 | }, {
2091 | "name" : "LIST",
2092 | "description" : "Indicates this type is a list. `ofType` is a valid field.",
2093 | "isDeprecated" : false,
2094 | "deprecationReason" : null
2095 | }, {
2096 | "name" : "NON_NULL",
2097 | "description" : "Indicates this type is a non-null. `ofType` is a valid field.",
2098 | "isDeprecated" : false,
2099 | "deprecationReason" : null
2100 | } ],
2101 | "possibleTypes" : null
2102 | }, {
2103 | "kind" : "OBJECT",
2104 | "name" : "__Field",
2105 | "description" : null,
2106 | "fields" : [ {
2107 | "name" : "name",
2108 | "description" : null,
2109 | "args" : [ ],
2110 | "type" : {
2111 | "kind" : "NON_NULL",
2112 | "name" : null,
2113 | "ofType" : {
2114 | "kind" : "SCALAR",
2115 | "name" : "String",
2116 | "ofType" : null
2117 | }
2118 | },
2119 | "isDeprecated" : false,
2120 | "deprecationReason" : null
2121 | }, {
2122 | "name" : "description",
2123 | "description" : null,
2124 | "args" : [ ],
2125 | "type" : {
2126 | "kind" : "SCALAR",
2127 | "name" : "String",
2128 | "ofType" : null
2129 | },
2130 | "isDeprecated" : false,
2131 | "deprecationReason" : null
2132 | }, {
2133 | "name" : "args",
2134 | "description" : null,
2135 | "args" : [ ],
2136 | "type" : {
2137 | "kind" : "NON_NULL",
2138 | "name" : null,
2139 | "ofType" : {
2140 | "kind" : "LIST",
2141 | "name" : null,
2142 | "ofType" : {
2143 | "kind" : "NON_NULL",
2144 | "name" : null,
2145 | "ofType" : {
2146 | "kind" : "OBJECT",
2147 | "name" : "__InputValue",
2148 | "ofType" : null
2149 | }
2150 | }
2151 | }
2152 | },
2153 | "isDeprecated" : false,
2154 | "deprecationReason" : null
2155 | }, {
2156 | "name" : "type",
2157 | "description" : null,
2158 | "args" : [ ],
2159 | "type" : {
2160 | "kind" : "NON_NULL",
2161 | "name" : null,
2162 | "ofType" : {
2163 | "kind" : "OBJECT",
2164 | "name" : "__Type",
2165 | "ofType" : null
2166 | }
2167 | },
2168 | "isDeprecated" : false,
2169 | "deprecationReason" : null
2170 | }, {
2171 | "name" : "isDeprecated",
2172 | "description" : null,
2173 | "args" : [ ],
2174 | "type" : {
2175 | "kind" : "NON_NULL",
2176 | "name" : null,
2177 | "ofType" : {
2178 | "kind" : "SCALAR",
2179 | "name" : "Boolean",
2180 | "ofType" : null
2181 | }
2182 | },
2183 | "isDeprecated" : false,
2184 | "deprecationReason" : null
2185 | }, {
2186 | "name" : "deprecationReason",
2187 | "description" : null,
2188 | "args" : [ ],
2189 | "type" : {
2190 | "kind" : "SCALAR",
2191 | "name" : "String",
2192 | "ofType" : null
2193 | },
2194 | "isDeprecated" : false,
2195 | "deprecationReason" : null
2196 | } ],
2197 | "inputFields" : null,
2198 | "interfaces" : [ ],
2199 | "enumValues" : null,
2200 | "possibleTypes" : null
2201 | }, {
2202 | "kind" : "OBJECT",
2203 | "name" : "__InputValue",
2204 | "description" : null,
2205 | "fields" : [ {
2206 | "name" : "name",
2207 | "description" : null,
2208 | "args" : [ ],
2209 | "type" : {
2210 | "kind" : "NON_NULL",
2211 | "name" : null,
2212 | "ofType" : {
2213 | "kind" : "SCALAR",
2214 | "name" : "String",
2215 | "ofType" : null
2216 | }
2217 | },
2218 | "isDeprecated" : false,
2219 | "deprecationReason" : null
2220 | }, {
2221 | "name" : "description",
2222 | "description" : null,
2223 | "args" : [ ],
2224 | "type" : {
2225 | "kind" : "SCALAR",
2226 | "name" : "String",
2227 | "ofType" : null
2228 | },
2229 | "isDeprecated" : false,
2230 | "deprecationReason" : null
2231 | }, {
2232 | "name" : "type",
2233 | "description" : null,
2234 | "args" : [ ],
2235 | "type" : {
2236 | "kind" : "NON_NULL",
2237 | "name" : null,
2238 | "ofType" : {
2239 | "kind" : "OBJECT",
2240 | "name" : "__Type",
2241 | "ofType" : null
2242 | }
2243 | },
2244 | "isDeprecated" : false,
2245 | "deprecationReason" : null
2246 | }, {
2247 | "name" : "defaultValue",
2248 | "description" : null,
2249 | "args" : [ ],
2250 | "type" : {
2251 | "kind" : "SCALAR",
2252 | "name" : "String",
2253 | "ofType" : null
2254 | },
2255 | "isDeprecated" : false,
2256 | "deprecationReason" : null
2257 | } ],
2258 | "inputFields" : null,
2259 | "interfaces" : [ ],
2260 | "enumValues" : null,
2261 | "possibleTypes" : null
2262 | }, {
2263 | "kind" : "OBJECT",
2264 | "name" : "__EnumValue",
2265 | "description" : null,
2266 | "fields" : [ {
2267 | "name" : "name",
2268 | "description" : null,
2269 | "args" : [ ],
2270 | "type" : {
2271 | "kind" : "NON_NULL",
2272 | "name" : null,
2273 | "ofType" : {
2274 | "kind" : "SCALAR",
2275 | "name" : "String",
2276 | "ofType" : null
2277 | }
2278 | },
2279 | "isDeprecated" : false,
2280 | "deprecationReason" : null
2281 | }, {
2282 | "name" : "description",
2283 | "description" : null,
2284 | "args" : [ ],
2285 | "type" : {
2286 | "kind" : "SCALAR",
2287 | "name" : "String",
2288 | "ofType" : null
2289 | },
2290 | "isDeprecated" : false,
2291 | "deprecationReason" : null
2292 | }, {
2293 | "name" : "isDeprecated",
2294 | "description" : null,
2295 | "args" : [ ],
2296 | "type" : {
2297 | "kind" : "NON_NULL",
2298 | "name" : null,
2299 | "ofType" : {
2300 | "kind" : "SCALAR",
2301 | "name" : "Boolean",
2302 | "ofType" : null
2303 | }
2304 | },
2305 | "isDeprecated" : false,
2306 | "deprecationReason" : null
2307 | }, {
2308 | "name" : "deprecationReason",
2309 | "description" : null,
2310 | "args" : [ ],
2311 | "type" : {
2312 | "kind" : "SCALAR",
2313 | "name" : "String",
2314 | "ofType" : null
2315 | },
2316 | "isDeprecated" : false,
2317 | "deprecationReason" : null
2318 | } ],
2319 | "inputFields" : null,
2320 | "interfaces" : [ ],
2321 | "enumValues" : null,
2322 | "possibleTypes" : null
2323 | }, {
2324 | "kind" : "OBJECT",
2325 | "name" : "__Directive",
2326 | "description" : null,
2327 | "fields" : [ {
2328 | "name" : "name",
2329 | "description" : null,
2330 | "args" : [ ],
2331 | "type" : {
2332 | "kind" : "SCALAR",
2333 | "name" : "String",
2334 | "ofType" : null
2335 | },
2336 | "isDeprecated" : false,
2337 | "deprecationReason" : null
2338 | }, {
2339 | "name" : "description",
2340 | "description" : null,
2341 | "args" : [ ],
2342 | "type" : {
2343 | "kind" : "SCALAR",
2344 | "name" : "String",
2345 | "ofType" : null
2346 | },
2347 | "isDeprecated" : false,
2348 | "deprecationReason" : null
2349 | }, {
2350 | "name" : "locations",
2351 | "description" : null,
2352 | "args" : [ ],
2353 | "type" : {
2354 | "kind" : "LIST",
2355 | "name" : null,
2356 | "ofType" : {
2357 | "kind" : "NON_NULL",
2358 | "name" : null,
2359 | "ofType" : {
2360 | "kind" : "ENUM",
2361 | "name" : "__DirectiveLocation",
2362 | "ofType" : null
2363 | }
2364 | }
2365 | },
2366 | "isDeprecated" : false,
2367 | "deprecationReason" : null
2368 | }, {
2369 | "name" : "args",
2370 | "description" : null,
2371 | "args" : [ ],
2372 | "type" : {
2373 | "kind" : "NON_NULL",
2374 | "name" : null,
2375 | "ofType" : {
2376 | "kind" : "LIST",
2377 | "name" : null,
2378 | "ofType" : {
2379 | "kind" : "NON_NULL",
2380 | "name" : null,
2381 | "ofType" : {
2382 | "kind" : "OBJECT",
2383 | "name" : "__InputValue",
2384 | "ofType" : null
2385 | }
2386 | }
2387 | }
2388 | },
2389 | "isDeprecated" : false,
2390 | "deprecationReason" : null
2391 | }, {
2392 | "name" : "onOperation",
2393 | "description" : null,
2394 | "args" : [ ],
2395 | "type" : {
2396 | "kind" : "SCALAR",
2397 | "name" : "Boolean",
2398 | "ofType" : null
2399 | },
2400 | "isDeprecated" : true,
2401 | "deprecationReason" : "Use `locations`."
2402 | }, {
2403 | "name" : "onFragment",
2404 | "description" : null,
2405 | "args" : [ ],
2406 | "type" : {
2407 | "kind" : "SCALAR",
2408 | "name" : "Boolean",
2409 | "ofType" : null
2410 | },
2411 | "isDeprecated" : true,
2412 | "deprecationReason" : "Use `locations`."
2413 | }, {
2414 | "name" : "onField",
2415 | "description" : null,
2416 | "args" : [ ],
2417 | "type" : {
2418 | "kind" : "SCALAR",
2419 | "name" : "Boolean",
2420 | "ofType" : null
2421 | },
2422 | "isDeprecated" : true,
2423 | "deprecationReason" : "Use `locations`."
2424 | } ],
2425 | "inputFields" : null,
2426 | "interfaces" : [ ],
2427 | "enumValues" : null,
2428 | "possibleTypes" : null
2429 | }, {
2430 | "kind" : "ENUM",
2431 | "name" : "__DirectiveLocation",
2432 | "description" : "An enum describing valid locations where a directive can be placed",
2433 | "fields" : null,
2434 | "inputFields" : null,
2435 | "interfaces" : null,
2436 | "enumValues" : [ {
2437 | "name" : "QUERY",
2438 | "description" : "Indicates the directive is valid on queries.",
2439 | "isDeprecated" : false,
2440 | "deprecationReason" : null
2441 | }, {
2442 | "name" : "MUTATION",
2443 | "description" : "Indicates the directive is valid on mutations.",
2444 | "isDeprecated" : false,
2445 | "deprecationReason" : null
2446 | }, {
2447 | "name" : "FIELD",
2448 | "description" : "Indicates the directive is valid on fields.",
2449 | "isDeprecated" : false,
2450 | "deprecationReason" : null
2451 | }, {
2452 | "name" : "FRAGMENT_DEFINITION",
2453 | "description" : "Indicates the directive is valid on fragment definitions.",
2454 | "isDeprecated" : false,
2455 | "deprecationReason" : null
2456 | }, {
2457 | "name" : "FRAGMENT_SPREAD",
2458 | "description" : "Indicates the directive is valid on fragment spreads.",
2459 | "isDeprecated" : false,
2460 | "deprecationReason" : null
2461 | }, {
2462 | "name" : "INLINE_FRAGMENT",
2463 | "description" : "Indicates the directive is valid on inline fragments.",
2464 | "isDeprecated" : false,
2465 | "deprecationReason" : null
2466 | }, {
2467 | "name" : "SCHEMA",
2468 | "description" : "Indicates the directive is valid on a schema SDL definition.",
2469 | "isDeprecated" : false,
2470 | "deprecationReason" : null
2471 | }, {
2472 | "name" : "SCALAR",
2473 | "description" : "Indicates the directive is valid on a scalar SDL definition.",
2474 | "isDeprecated" : false,
2475 | "deprecationReason" : null
2476 | }, {
2477 | "name" : "OBJECT",
2478 | "description" : "Indicates the directive is valid on an object SDL definition.",
2479 | "isDeprecated" : false,
2480 | "deprecationReason" : null
2481 | }, {
2482 | "name" : "FIELD_DEFINITION",
2483 | "description" : "Indicates the directive is valid on a field SDL definition.",
2484 | "isDeprecated" : false,
2485 | "deprecationReason" : null
2486 | }, {
2487 | "name" : "ARGUMENT_DEFINITION",
2488 | "description" : "Indicates the directive is valid on a field argument SDL definition.",
2489 | "isDeprecated" : false,
2490 | "deprecationReason" : null
2491 | }, {
2492 | "name" : "INTERFACE",
2493 | "description" : "Indicates the directive is valid on an interface SDL definition.",
2494 | "isDeprecated" : false,
2495 | "deprecationReason" : null
2496 | }, {
2497 | "name" : "UNION",
2498 | "description" : "Indicates the directive is valid on an union SDL definition.",
2499 | "isDeprecated" : false,
2500 | "deprecationReason" : null
2501 | }, {
2502 | "name" : "ENUM",
2503 | "description" : "Indicates the directive is valid on an enum SDL definition.",
2504 | "isDeprecated" : false,
2505 | "deprecationReason" : null
2506 | }, {
2507 | "name" : "ENUM_VALUE",
2508 | "description" : "Indicates the directive is valid on an enum value SDL definition.",
2509 | "isDeprecated" : false,
2510 | "deprecationReason" : null
2511 | }, {
2512 | "name" : "INPUT_OBJECT",
2513 | "description" : "Indicates the directive is valid on an input object SDL definition.",
2514 | "isDeprecated" : false,
2515 | "deprecationReason" : null
2516 | }, {
2517 | "name" : "INPUT_FIELD_DEFINITION",
2518 | "description" : "Indicates the directive is valid on an input object field SDL definition.",
2519 | "isDeprecated" : false,
2520 | "deprecationReason" : null
2521 | } ],
2522 | "possibleTypes" : null
2523 | } ],
2524 | "directives" : [ {
2525 | "name" : "include",
2526 | "description" : "Directs the executor to include this field or fragment only when the `if` argument is true",
2527 | "locations" : [ "FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT" ],
2528 | "args" : [ {
2529 | "name" : "if",
2530 | "description" : "Included when true.",
2531 | "type" : {
2532 | "kind" : "NON_NULL",
2533 | "name" : null,
2534 | "ofType" : {
2535 | "kind" : "SCALAR",
2536 | "name" : "Boolean",
2537 | "ofType" : null
2538 | }
2539 | },
2540 | "defaultValue" : null
2541 | } ],
2542 | "onOperation" : false,
2543 | "onFragment" : true,
2544 | "onField" : true
2545 | }, {
2546 | "name" : "skip",
2547 | "description" : "Directs the executor to skip this field or fragment when the `if`'argument is true.",
2548 | "locations" : [ "FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT" ],
2549 | "args" : [ {
2550 | "name" : "if",
2551 | "description" : "Skipped when true.",
2552 | "type" : {
2553 | "kind" : "NON_NULL",
2554 | "name" : null,
2555 | "ofType" : {
2556 | "kind" : "SCALAR",
2557 | "name" : "Boolean",
2558 | "ofType" : null
2559 | }
2560 | },
2561 | "defaultValue" : null
2562 | } ],
2563 | "onOperation" : false,
2564 | "onFragment" : true,
2565 | "onField" : true
2566 | }, {
2567 | "name" : "defer",
2568 | "description" : "This directive allows results to be deferred during execution",
2569 | "locations" : [ "FIELD" ],
2570 | "args" : [ ],
2571 | "onOperation" : false,
2572 | "onFragment" : false,
2573 | "onField" : true
2574 | }, {
2575 | "name" : "aws_auth",
2576 | "description" : "Directs the schema to enforce authorization on a field",
2577 | "locations" : [ "FIELD_DEFINITION" ],
2578 | "args" : [ {
2579 | "name" : "cognito_groups",
2580 | "description" : "List of cognito user pool groups which have access on this field",
2581 | "type" : {
2582 | "kind" : "LIST",
2583 | "name" : null,
2584 | "ofType" : {
2585 | "kind" : "SCALAR",
2586 | "name" : "String",
2587 | "ofType" : null
2588 | }
2589 | },
2590 | "defaultValue" : null
2591 | } ],
2592 | "onOperation" : false,
2593 | "onFragment" : false,
2594 | "onField" : false
2595 | }, {
2596 | "name" : "aws_subscribe",
2597 | "description" : "Tells the service which mutation triggers this subscription.",
2598 | "locations" : [ "FIELD_DEFINITION" ],
2599 | "args" : [ {
2600 | "name" : "mutations",
2601 | "description" : "List of mutations which will trigger this subscription when they are called.",
2602 | "type" : {
2603 | "kind" : "LIST",
2604 | "name" : null,
2605 | "ofType" : {
2606 | "kind" : "SCALAR",
2607 | "name" : "String",
2608 | "ofType" : null
2609 | }
2610 | },
2611 | "defaultValue" : null
2612 | } ],
2613 | "onOperation" : false,
2614 | "onFragment" : false,
2615 | "onField" : false
2616 | }, {
2617 | "name" : "deprecated",
2618 | "description" : null,
2619 | "locations" : [ "FIELD_DEFINITION", "ENUM_VALUE" ],
2620 | "args" : [ {
2621 | "name" : "reason",
2622 | "description" : null,
2623 | "type" : {
2624 | "kind" : "SCALAR",
2625 | "name" : "String",
2626 | "ofType" : null
2627 | },
2628 | "defaultValue" : "\"No longer supported\""
2629 | } ],
2630 | "onOperation" : false,
2631 | "onFragment" : false,
2632 | "onField" : false
2633 | }, {
2634 | "name" : "aws_publish",
2635 | "description" : "Tells the service which subscriptions will be published to when this mutation is called. This directive is deprecated use @aws_susbscribe directive instead.",
2636 | "locations" : [ "FIELD_DEFINITION" ],
2637 | "args" : [ {
2638 | "name" : "subscriptions",
2639 | "description" : "List of subscriptions which will be published to when this mutation is called.",
2640 | "type" : {
2641 | "kind" : "LIST",
2642 | "name" : null,
2643 | "ofType" : {
2644 | "kind" : "SCALAR",
2645 | "name" : "String",
2646 | "ofType" : null
2647 | }
2648 | },
2649 | "defaultValue" : null
2650 | } ],
2651 | "onOperation" : false,
2652 | "onFragment" : false,
2653 | "onField" : false
2654 | } ]
2655 | }
2656 | }
2657 | }
--------------------------------------------------------------------------------