File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ enum class BuiltinType
21
21
ID,
22
22
};
23
23
24
- using BuiltinTypeMap = std::unordered_map <std::string, BuiltinType>;
24
+ using BuiltinTypeMap = std::map <std::string, BuiltinType>;
25
25
26
26
// These are the C++ types we'll use for them.
27
27
using CppTypeMap = std::array<std::string, static_cast <size_t >(BuiltinType::ID) + 1 >;
@@ -38,7 +38,7 @@ enum class SchemaType
38
38
Operation,
39
39
};
40
40
41
- using SchemaTypeMap = std::unordered_map <std::string, SchemaType>;
41
+ using SchemaTypeMap = std::map <std::string, SchemaType>;
42
42
43
43
// Keep track of the positions of each type declaration in the file.
44
44
using PositionMap = std::unordered_map<std::string, tao::graphqlpeg::position>;
Original file line number Diff line number Diff line change @@ -488,11 +488,11 @@ std::future<response::Value> Directive::resolve_typename(service::ResolverParams
488
488
489
489
void AddTypesToSchema (std::shared_ptr<introspection::Schema> schema)
490
490
{
491
- schema->AddType (" Int " , std::make_shared<introspection::ScalarType>(" Int " , R"md( Built-in type)md" ));
491
+ schema->AddType (" Boolean " , std::make_shared<introspection::ScalarType>(" Boolean " , R"md( Built-in type)md" ));
492
492
schema->AddType (" Float" , std::make_shared<introspection::ScalarType>(" Float" , R"md( Built-in type)md" ));
493
493
schema->AddType (" ID" , std::make_shared<introspection::ScalarType>(" ID" , R"md( Built-in type)md" ));
494
+ schema->AddType (" Int" , std::make_shared<introspection::ScalarType>(" Int" , R"md( Built-in type)md" ));
494
495
schema->AddType (" String" , std::make_shared<introspection::ScalarType>(" String" , R"md( Built-in type)md" ));
495
- schema->AddType (" Boolean" , std::make_shared<introspection::ScalarType>(" Boolean" , R"md( Built-in type)md" ));
496
496
auto typeTypeKind = std::make_shared<introspection::EnumType>(" __TypeKind" , R"md( )md" );
497
497
schema->AddType (" __TypeKind" , typeTypeKind);
498
498
auto typeDirectiveLocation = std::make_shared<introspection::EnumType>(" __DirectiveLocation" , R"md( )md" );
You can’t perform that action at this time.
0 commit comments