We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7098982 commit 44fd291Copy full SHA for 44fd291
SchemaGenerator.cpp
@@ -2074,6 +2074,19 @@ Operations::Operations()cpp";
2074
{
2075
)cpp";
2076
2077
+ if (_isIntrospection)
2078
+ {
2079
+ // Add SCALAR types for each of the built-in types
2080
+ for (const auto& builtinType : s_builtinTypes)
2081
2082
+ sourceFile << R"cpp( schema->AddType(")cpp" << builtinType.first
2083
+ << R"cpp(", std::make_shared<)cpp" << s_introspectionNamespace
2084
+ << R"cpp(::ScalarType>(")cpp" << builtinType.first
2085
+ << R"cpp(", R"md(Built-in type)md"));
2086
+)cpp";
2087
+ }
2088
2089
+
2090
if (!_scalarTypes.empty())
2091
2092
for (const auto& scalarType : _scalarTypes)
0 commit comments