Skip to content

Commit 429e560

Browse files
committed
Add notes about places we need to handle the List and Object types.
Refs #17
1 parent cc70512 commit 429e560

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Graph/QL/Util/AST.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ sub guess_literal_to_ast_node ($literal) {
5757
require Graph::QL::AST::Node::StringValue;
5858
return Graph::QL::AST::Node::StringValue->new( value => $literal );
5959
}
60+
# TODO: Handle ListValue and ObjectValue
6061
}
6162

6263
# If you know the type, then we can wrap
@@ -87,6 +88,7 @@ sub literal_to_ast_node ($literal, $type) {
8788
else {
8889
throw('Do not recognize the expected type(%s), unable to convert to ast-node', $type->name);
8990
}
91+
# TODO: Handle ListValue and ObjectValue
9092
}
9193

9294
# This is basically just because NullValue does
@@ -118,6 +120,7 @@ sub ast_node_to_type_language ($ast_node) {
118120
else {
119121
throw('Do not recognize the expected ast-node(%s), unable to convert to type-language', $ast_node);
120122
}
123+
# TODO: Handle ListValue and ObjectValue
121124
}
122125

123126
# When a type is referred to, we might need to convert
@@ -222,6 +225,7 @@ sub ast_value_to_schema_type ($ast_value) {
222225
else {
223226
throw('Do not recognize the ast-value(%s), unable to convert to schema type', $ast_value);
224227
}
228+
# TODO: Handle ListValue and ObjectValue
225229
}
226230

227231
## ----------------------------------------------

0 commit comments

Comments
 (0)