Skip to content

Commit 5c5f7a3

Browse files
Dean OhashiDean Ohashi
authored andcommitted
added queries
1 parent 435da91 commit 5c5f7a3

File tree

4 files changed

+2740
-0
lines changed

4 files changed

+2740
-0
lines changed

src/graphql/mutations.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// eslint-disable
2+
// this is an auto generated file. This will be overwritten
3+
4+
export const createTodo = `mutation CreateTodo($input: CreateTodoInput!) {
5+
createTodo(input: $input) {
6+
id
7+
name
8+
owner
9+
date
10+
description
11+
completed
12+
}
13+
}
14+
`;
15+
export const updateTodo = `mutation UpdateTodo($input: UpdateTodoInput!) {
16+
updateTodo(input: $input) {
17+
id
18+
name
19+
owner
20+
date
21+
description
22+
completed
23+
}
24+
}
25+
`;
26+
export const deleteTodo = `mutation DeleteTodo($input: DeleteTodoInput!) {
27+
deleteTodo(input: $input) {
28+
id
29+
name
30+
owner
31+
date
32+
description
33+
completed
34+
}
35+
}
36+
`;

src/graphql/queries.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// eslint-disable
2+
// this is an auto generated file. This will be overwritten
3+
4+
export const getTodo = `query GetTodo($id: ID!) {
5+
getTodo(id: $id) {
6+
id
7+
name
8+
owner
9+
date
10+
description
11+
completed
12+
}
13+
}
14+
`;
15+
export const listTodos = `query ListTodos(
16+
$filter: ModelTodoFilterInput
17+
$limit: Int
18+
$nextToken: String
19+
) {
20+
listTodos(filter: $filter, limit: $limit, nextToken: $nextToken) {
21+
items {
22+
id
23+
name
24+
owner
25+
date
26+
description
27+
completed
28+
}
29+
nextToken
30+
}
31+
}
32+
`;
33+
export const searchTodos = `query SearchTodos(
34+
$filter: SearchableTodoFilterInput
35+
$sort: SearchableTodoSortInput
36+
$limit: Int
37+
$nextToken: Int
38+
) {
39+
searchTodos(
40+
filter: $filter
41+
sort: $sort
42+
limit: $limit
43+
nextToken: $nextToken
44+
) {
45+
items {
46+
id
47+
name
48+
owner
49+
date
50+
description
51+
completed
52+
}
53+
nextToken
54+
}
55+
}
56+
`;

0 commit comments

Comments
 (0)