Skip to content

Client code generation issue in 3.7.0 #199

Closed
@Coder666

Description

@Coder666

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions