Closed
Description
Hi,
I have a issue with client code generation in version 3.7.0.
There is a query that takes an "id" parameter which is of type IdType
query FooBarQuery( $id : ID! )
{
foo( id : $id )
{
bar
}
}
The client generator is generating the following code:
client.h
struct Variables
{
response::IdType id {};
};
client.cpp
response::Value serializeVariables(Variables&& variables)
{
response::Value result { response::Type::Map };
result.emplace_back(R"js(id)js"s, ModifiedVariable<Variables::response::IdType>::serialize(std::move(variables.id)));
return result;
}
I believe that the template parameter for ModifiedVariable
should just be response::IdType
?
Anyway in the current form, it produces a compiler error. I don't have a fix yet but I'm looking at the issue.