16
16
17
17
using namespace std ::literals;
18
18
19
- namespace graphql ::client {
19
+ namespace graphql {
20
20
namespace benchmark {
21
+ namespace client {
21
22
22
23
const std::string& GetRequestText () noexcept
23
24
{
@@ -59,14 +60,16 @@ const peg::ast& GetRequestObject() noexcept
59
60
return s_request;
60
61
}
61
62
63
+ } // namespace client
62
64
} // namespace benchmark
65
+ namespace client {
63
66
64
67
using namespace benchmark ;
65
68
66
69
template <>
67
- query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo Response<query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo>::parse(response::Value&& response)
70
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo Response<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo>::parse(response::Value&& response)
68
71
{
69
- query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo result;
72
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo result;
70
73
71
74
if (response.type () == response::Type::Map)
72
75
{
@@ -86,9 +89,9 @@ query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo Re
86
89
}
87
90
88
91
template <>
89
- query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment Response<query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment>::parse(response::Value&& response)
92
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment Response<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment>::parse(response::Value&& response)
90
93
{
91
- query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment result;
94
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment result;
92
95
93
96
if (response.type () == response::Type::Map)
94
97
{
@@ -123,9 +126,9 @@ query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdg
123
126
}
124
127
125
128
template <>
126
- query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge Response<query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge>::parse(response::Value&& response)
129
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge Response<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge>::parse(response::Value&& response)
127
130
{
128
- query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge result;
131
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge result;
129
132
130
133
if (response.type () == response::Type::Map)
131
134
{
@@ -135,7 +138,7 @@ query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdg
135
138
{
136
139
if (member.first == R"js( node)js" sv)
137
140
{
138
- result.node = ModifiedResponse<query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment>::parse<TypeModifier::Nullable>(std::move (member.second ));
141
+ result.node = ModifiedResponse<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge::node_Appointment>::parse<TypeModifier::Nullable>(std::move (member.second ));
139
142
continue ;
140
143
}
141
144
}
@@ -145,9 +148,9 @@ query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdg
145
148
}
146
149
147
150
template <>
148
- query::Query::Response::appointments_AppointmentConnection Response<query::Query::Response::appointments_AppointmentConnection>::parse(response::Value&& response)
151
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection Response<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection>::parse(response::Value&& response)
149
152
{
150
- query::Query::Response::appointments_AppointmentConnection result;
153
+ graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection result;
151
154
152
155
if (response.type () == response::Type::Map)
153
156
{
@@ -157,12 +160,12 @@ query::Query::Response::appointments_AppointmentConnection Response<query::Query
157
160
{
158
161
if (member.first == R"js( pageInfo)js" sv)
159
162
{
160
- result.pageInfo = ModifiedResponse<query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo>::parse (std::move (member.second ));
163
+ result.pageInfo = ModifiedResponse<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::pageInfo_PageInfo>::parse (std::move (member.second ));
161
164
continue ;
162
165
}
163
166
if (member.first == R"js( edges)js" sv)
164
167
{
165
- result.edges = ModifiedResponse<query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge>::parse<TypeModifier::Nullable, TypeModifier::List, TypeModifier::Nullable>(std::move (member.second ));
168
+ result.edges = ModifiedResponse<graphql::benchmark::client:: query::Query::Response::appointments_AppointmentConnection::edges_AppointmentEdge>::parse<TypeModifier::Nullable, TypeModifier::List, TypeModifier::Nullable>(std::move (member.second ));
166
169
continue ;
167
170
}
168
171
}
@@ -171,7 +174,9 @@ query::Query::Response::appointments_AppointmentConnection Response<query::Query
171
174
return result;
172
175
}
173
176
174
- namespace query ::Query {
177
+ } // namespace client
178
+
179
+ namespace benchmark ::client::query::Query {
175
180
176
181
const std::string& GetOperationName () noexcept
177
182
{
@@ -182,6 +187,8 @@ const std::string& GetOperationName() noexcept
182
187
183
188
Response parseResponse (response::Value&& response)
184
189
{
190
+ using namespace graphql ::client;
191
+
185
192
Response result;
186
193
187
194
if (response.type () == response::Type::Map)
@@ -203,12 +210,12 @@ Response parseResponse(response::Value&& response)
203
210
204
211
[[nodiscard(" unnecessary call" )]] const std::string& Traits::GetRequestText () noexcept
205
212
{
206
- return benchmark ::GetRequestText ();
213
+ return client ::GetRequestText ();
207
214
}
208
215
209
216
[[nodiscard(" unnecessary call" )]] const peg::ast& Traits::GetRequestObject () noexcept
210
217
{
211
- return benchmark ::GetRequestObject ();
218
+ return client ::GetRequestObject ();
212
219
}
213
220
214
221
[[nodiscard(" unnecessary call" )]] const std::string& Traits::GetOperationName () noexcept
@@ -221,5 +228,5 @@ Response parseResponse(response::Value&& response)
221
228
return Query::parseResponse (std::move (response));
222
229
}
223
230
224
- } // namespace query::Query
225
- } // namespace graphql::client
231
+ } // namespace benchmark::client:: query::Query
232
+ } // namespace graphql
0 commit comments