WIP on config

This commit is contained in:
Ben Kraft
2020-01-03 11:02:31 -08:00
parent 12605986d0
commit bf5d04939e
5 changed files with 95 additions and 27 deletions
-1
View File
@@ -90,7 +90,6 @@ func fromASTOperation(op *ast.OperationDefinition, schema *ast.Schema) operation
}
func Generate(schema *ast.Schema, document *ast.QueryDocument) ([]byte, error) {
// TODO: this should probably get factored out
operations := make([]operation, len(document.Operations))
for i, op := range document.Operations {
operations[i] = fromASTOperation(op, schema)