cleanup: merge types & add graphql-codegen-cli
This commit is contained in:
8
web/src/shared/graphql/createTask.graphqls
Normal file
8
web/src/shared/graphql/createTask.graphqls
Normal file
@ -0,0 +1,8 @@
|
||||
mutation createTask($taskGroupID: String!, $name: String!, $position: Float!) {
|
||||
createTask(input: { taskGroupID: $taskGroupID, name: $name, position: $position }) {
|
||||
taskID
|
||||
taskGroupID
|
||||
name
|
||||
position
|
||||
}
|
||||
}
|
5
web/src/shared/graphql/deleteTask.graphqls
Normal file
5
web/src/shared/graphql/deleteTask.graphqls
Normal file
@ -0,0 +1,5 @@
|
||||
mutation deleteTask($taskID: String!) {
|
||||
deleteTask(input: { taskID: $taskID }) {
|
||||
taskID
|
||||
}
|
||||
}
|
15
web/src/shared/graphql/findProject.graphqls
Normal file
15
web/src/shared/graphql/findProject.graphqls
Normal file
@ -0,0 +1,15 @@
|
||||
query findProject($projectId: String!) {
|
||||
findProject(input: { projectId: $projectId }) {
|
||||
name
|
||||
taskGroups {
|
||||
taskGroupID
|
||||
name
|
||||
position
|
||||
tasks {
|
||||
taskID
|
||||
name
|
||||
position
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
web/src/shared/graphql/getProjects.graphqls
Normal file
12
web/src/shared/graphql/getProjects.graphqls
Normal file
@ -0,0 +1,12 @@
|
||||
query getProjects {
|
||||
organizations {
|
||||
name
|
||||
teams {
|
||||
name
|
||||
projects {
|
||||
name
|
||||
projectID
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
8
web/src/shared/graphql/updateTaskLocation.graphqls
Normal file
8
web/src/shared/graphql/updateTaskLocation.graphqls
Normal file
@ -0,0 +1,8 @@
|
||||
mutation updateTaskLocation($taskID: String!, $taskGroupID: String!, $position: Float!) {
|
||||
updateTaskLocation(input: { taskID: $taskID, taskGroupID: $taskGroupID, position: $position }) {
|
||||
taskID
|
||||
createdAt
|
||||
name
|
||||
position
|
||||
}
|
||||
}
|
7
web/src/shared/graphql/updateTaskName.graphqls
Normal file
7
web/src/shared/graphql/updateTaskName.graphqls
Normal file
@ -0,0 +1,7 @@
|
||||
mutation updateTaskName($taskID: String!, $name: String!) {
|
||||
updateTaskName(input: { taskID: $taskID, name: $name }) {
|
||||
taskID
|
||||
name
|
||||
position
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user