cleanup: merge types & add graphql-codegen-cli

This commit is contained in:
Jordan Knott
2020-04-09 22:27:57 -05:00
parent 9611105364
commit 0766565dc7
21 changed files with 2336 additions and 326 deletions

View 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
}
}

View File

@ -0,0 +1,5 @@
mutation deleteTask($taskID: String!) {
deleteTask(input: { taskID: $taskID }) {
taskID
}
}

View File

@ -0,0 +1,15 @@
query findProject($projectId: String!) {
findProject(input: { projectId: $projectId }) {
name
taskGroups {
taskGroupID
name
position
tasks {
taskID
name
position
}
}
}
}

View File

@ -0,0 +1,12 @@
query getProjects {
organizations {
name
teams {
name
projects {
name
projectID
}
}
}
}

View 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
}
}

View File

@ -0,0 +1,7 @@
mutation updateTaskName($taskID: String!, $name: String!) {
updateTaskName(input: { taskID: $taskID, name: $name }) {
taskID
name
position
}
}