File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,6 @@ namespace introspection {
99
1010Schema::Schema ()
1111{
12- AddType (" Int" , std::make_shared<ScalarType>(" Int" , " " ));
13- AddType (" Float" , std::make_shared<ScalarType>(" Float" , " " ));
14- AddType (" String" , std::make_shared<ScalarType>(" String" , " " ));
15- AddType (" Boolean" , std::make_shared<ScalarType>(" Boolean" , " " ));
16- AddType (" ID" , std::make_shared<ScalarType>(" ID" , " " ));
1712}
1813
1914void Schema::AddQueryType (std::shared_ptr<ObjectType> query)
Original file line number Diff line number Diff line change @@ -536,6 +536,11 @@ std::future<response::Value> __Directive::resolve__typename(service::ResolverPar
536536
537537void AddTypesToSchema (std::shared_ptr<introspection::Schema> schema)
538538{
539+ schema->AddType (" Int" , std::make_shared<introspection::ScalarType>(" Int" , R"md( Built-in type)md" ));
540+ schema->AddType (" Float" , std::make_shared<introspection::ScalarType>(" Float" , R"md( Built-in type)md" ));
541+ schema->AddType (" ID" , std::make_shared<introspection::ScalarType>(" ID" , R"md( Built-in type)md" ));
542+ schema->AddType (" String" , std::make_shared<introspection::ScalarType>(" String" , R"md( Built-in type)md" ));
543+ schema->AddType (" Boolean" , std::make_shared<introspection::ScalarType>(" Boolean" , R"md( Built-in type)md" ));
539544 auto type__TypeKind= std::make_shared<introspection::EnumType>(" __TypeKind" , R"md( )md" );
540545 schema->AddType (" __TypeKind" , type__TypeKind);
541546 auto type__DirectiveLocation= std::make_shared<introspection::EnumType>(" __DirectiveLocation" , R"md( )md" );
You can’t perform that action at this time.
0 commit comments