diff --git a/bbconf/bb_todo-resolver.toml b/bbconf/bb_todo-resolver.toml index ea10f8c..bc655aa 100644 --- a/bbconf/bb_todo-resolver.toml +++ b/bbconf/bb_todo-resolver.toml @@ -1,3 +1,115 @@ +[resolvers.createList] +operation_name = "createList" + +[resolvers.createList.resolver] +command_type = "SQLInsert" + +[resolvers.createList.resolver.command] +table = "List" +columns = [] +where_clauses = [] +aggregate_result = true + +[[resolvers.createList.resolver.command.modify_values]] +column = "title" +value = "'$title'" + +[[resolvers.createList.resolver.command.modify_values]] +column = "user_username" +value = "'$user.$username'" + +[resolvers.createUser] +operation_name = "createUser" + +[resolvers.createUser.resolver] +command_type = "SQLInsert" + +[resolvers.createUser.resolver.command] +table = "User" +columns = [] +where_clauses = [] +aggregate_result = true + +[[resolvers.createUser.resolver.command.modify_values]] +column = "username" +value = "'$username'" + +[[resolvers.createUser.resolver.command.modify_values]] +column = "name" +value = "'$name'" + +[resolvers.deleteTask] +operation_name = "deleteTask" + +[resolvers.deleteTask.resolver] +command_type = "SQLDelete" + +[resolvers.deleteTask.resolver.command] +table = "Task" +columns = [] +modify_values = [] +aggregate_result = true + +[[resolvers.deleteTask.resolver.command.where_clauses]] +table = "Task" +column = "id" +condition_str = "= '$id'" +index = "" + +[resolvers.updateList] +operation_name = "updateList" + +[resolvers.updateList.resolver] +command_type = "SQLUpdate" + +[resolvers.updateList.resolver.command] +table = "List" +columns = [] +aggregate_result = true + +[[resolvers.updateList.resolver.command.modify_values]] +column = "title" +value = "'$title'" + +[[resolvers.updateList.resolver.command.where_clauses]] +table = "List" +column = "id" +condition_str = "= '$id'" +index = "" + +[resolvers.updateTask] +operation_name = "updateTask" + +[resolvers.updateTask.resolver] +command_type = "SQLUpdate" + +[resolvers.updateTask.resolver.command] +table = "Task" +columns = [] +aggregate_result = true + +[[resolvers.updateTask.resolver.command.modify_values]] +column = "title" +value = "'$title'" + +[[resolvers.updateTask.resolver.command.modify_values]] +column = "description" +value = "'$description'" + +[[resolvers.updateTask.resolver.command.modify_values]] +column = "completed" +value = "'$completed'" + +[[resolvers.updateTask.resolver.command.modify_values]] +column = "list_id" +value = "'$list.$id'" + +[[resolvers.updateTask.resolver.command.where_clauses]] +table = "Task" +column = "id" +condition_str = "= '$id'" +index = "" + [resolvers.createTask] operation_name = "createTask" @@ -65,115 +177,3 @@ table = "List" column = "id" condition_str = "= '$id'" index = "" - -[resolvers.createList] -operation_name = "createList" - -[resolvers.createList.resolver] -command_type = "SQLInsert" - -[resolvers.createList.resolver.command] -table = "List" -columns = [] -where_clauses = [] -aggregate_result = true - -[[resolvers.createList.resolver.command.modify_values]] -column = "title" -value = "'$title'" - -[[resolvers.createList.resolver.command.modify_values]] -column = "user_username" -value = "'$user.$username'" - -[resolvers.updateTask] -operation_name = "updateTask" - -[resolvers.updateTask.resolver] -command_type = "SQLUpdate" - -[resolvers.updateTask.resolver.command] -table = "Task" -columns = [] -aggregate_result = true - -[[resolvers.updateTask.resolver.command.modify_values]] -column = "title" -value = "'$title'" - -[[resolvers.updateTask.resolver.command.modify_values]] -column = "description" -value = "'$description'" - -[[resolvers.updateTask.resolver.command.modify_values]] -column = "completed" -value = "'$completed'" - -[[resolvers.updateTask.resolver.command.modify_values]] -column = "list_id" -value = "'$list.$id'" - -[[resolvers.updateTask.resolver.command.where_clauses]] -table = "Task" -column = "id" -condition_str = "= '$id'" -index = "" - -[resolvers.createUser] -operation_name = "createUser" - -[resolvers.createUser.resolver] -command_type = "SQLInsert" - -[resolvers.createUser.resolver.command] -table = "User" -columns = [] -where_clauses = [] -aggregate_result = true - -[[resolvers.createUser.resolver.command.modify_values]] -column = "username" -value = "'$username'" - -[[resolvers.createUser.resolver.command.modify_values]] -column = "name" -value = "'$name'" - -[resolvers.deleteTask] -operation_name = "deleteTask" - -[resolvers.deleteTask.resolver] -command_type = "SQLDelete" - -[resolvers.deleteTask.resolver.command] -table = "Task" -columns = [] -modify_values = [] -aggregate_result = true - -[[resolvers.deleteTask.resolver.command.where_clauses]] -table = "Task" -column = "id" -condition_str = "= '$id'" -index = "" - -[resolvers.updateList] -operation_name = "updateList" - -[resolvers.updateList.resolver] -command_type = "SQLUpdate" - -[resolvers.updateList.resolver.command] -table = "List" -columns = [] -aggregate_result = true - -[[resolvers.updateList.resolver.command.modify_values]] -column = "title" -value = "'$title'" - -[[resolvers.updateList.resolver.command.where_clauses]] -table = "List" -column = "id" -condition_str = "= '$id'" -index = ""