Currently a nil is passed in causing code to crash.
Unit Test:
test "returns an error when an operation name does not match an operation defined in the query" do
{_, result} = execute(TestSchema.schema, "query a {greeting}", operation_name: "b")
assert_has_error(result, %{message: "Must provide an operation name that exists in the query."})
end
Currently a nil is passed in causing code to crash.
Unit Test: