Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 06bea1a

Browse files
author
Josh Price
committed
Remove todos
1 parent 683cd82 commit 06bea1a

File tree

5 files changed

+1
-7
lines changed

5 files changed

+1
-7
lines changed

lib/graphql.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ defmodule GraphQL do
9898
end
9999

100100
defp execute_with_optional_validation(schema, query, opts) do
101-
# TODO: use the `with` statement to compose write this in a nicer way
102101
case GraphQL.Lang.Parser.parse(query) do
103102
{:ok, document} ->
104103
case optionally_validate(Keyword.get(opts, :validate, true), schema, document) do

lib/graphql/execution/execution_context.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule GraphQL.Execution.ExecutionContext do
1818
fragments: %{},
1919
root_value: root_value,
2020
operation: nil,
21-
variable_values: variable_values || %{}, # TODO: We need to deeply set keys as strings or atoms. not allow both.
21+
variable_values: variable_values || %{},
2222
errors: []
2323
}, fn(definition, context) ->
2424

@@ -43,4 +43,3 @@ defmodule GraphQL.Execution.ExecutionContext do
4343
put_in(context.errors, [%{"message" => msg} | context.errors])
4444
end
4545
end
46-

lib/graphql/execution/executor.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ defmodule GraphQL.Execution.Executor do
172172

173173
@spec complete_value(%NonNull{}, ExecutionContext.t, GraphQL.Document.t, any, any) :: {ExecutionContext.t, map}
174174
defp complete_value(%NonNull{ofType: inner_type}, context, field_asts, info, result) do
175-
# TODO: Null Checking
176175
complete_value(unwrap_type(inner_type), context, field_asts, info, result)
177176
end
178177

lib/graphql/execution/variables.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ defmodule GraphQL.Execution.Variables do
1919

2020
defp get_variable_value(schema, ast, input_value) do
2121
type = GraphQL.Schema.type_from_ast(ast.type, schema)
22-
# todo soooooo much error handling. so much.
2322
value_for(ast, type, input_value)
2423
end
2524

test/graphql/execution/variables_test.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ defmodule GraphQL.Execution.Executor.VariableTest do
1313
defmodule GraphQL.Type.TestComplexScalar do
1414
defstruct name: "ComplexScalar", description: ""
1515
end
16-
# TODO: Why can't I have a defimpl in here?
17-
# Should I put this in a support file?
1816

1917
alias GraphQL.Type.TestComplexScalar
2018

0 commit comments

Comments
 (0)