-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathQueryObject.h
494 lines (429 loc) · 21.1 KB
/
QueryObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// WARNING! Do not edit this file manually, your changes will be overwritten.
#pragma once
#ifndef QUERYOBJECT_H
#define QUERYOBJECT_H
#include "TodaySchema.h"
namespace graphql::today::object {
namespace methods::QueryHas {
template <class TImpl>
concept getNodeWithParams = requires (TImpl impl, service::FieldParams params, response::IdType idArg)
{
{ service::AwaitableObject<std::shared_ptr<Node>> { impl.getNode(std::move(params), std::move(idArg)) } };
};
template <class TImpl>
concept getNode = requires (TImpl impl, response::IdType idArg)
{
{ service::AwaitableObject<std::shared_ptr<Node>> { impl.getNode(std::move(idArg)) } };
};
template <class TImpl>
concept getAppointmentsWithParams = requires (TImpl impl, service::FieldParams params, std::optional<int> firstArg, std::optional<response::Value> afterArg, std::optional<int> lastArg, std::optional<response::Value> beforeArg)
{
{ service::AwaitableObject<std::shared_ptr<AppointmentConnection>> { impl.getAppointments(std::move(params), std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) } };
};
template <class TImpl>
concept getAppointments = requires (TImpl impl, std::optional<int> firstArg, std::optional<response::Value> afterArg, std::optional<int> lastArg, std::optional<response::Value> beforeArg)
{
{ service::AwaitableObject<std::shared_ptr<AppointmentConnection>> { impl.getAppointments(std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) } };
};
template <class TImpl>
concept getTasksWithParams = requires (TImpl impl, service::FieldParams params, std::optional<int> firstArg, std::optional<response::Value> afterArg, std::optional<int> lastArg, std::optional<response::Value> beforeArg)
{
{ service::AwaitableObject<std::shared_ptr<TaskConnection>> { impl.getTasks(std::move(params), std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) } };
};
template <class TImpl>
concept getTasks = requires (TImpl impl, std::optional<int> firstArg, std::optional<response::Value> afterArg, std::optional<int> lastArg, std::optional<response::Value> beforeArg)
{
{ service::AwaitableObject<std::shared_ptr<TaskConnection>> { impl.getTasks(std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) } };
};
template <class TImpl>
concept getUnreadCountsWithParams = requires (TImpl impl, service::FieldParams params, std::optional<int> firstArg, std::optional<response::Value> afterArg, std::optional<int> lastArg, std::optional<response::Value> beforeArg)
{
{ service::AwaitableObject<std::shared_ptr<FolderConnection>> { impl.getUnreadCounts(std::move(params), std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) } };
};
template <class TImpl>
concept getUnreadCounts = requires (TImpl impl, std::optional<int> firstArg, std::optional<response::Value> afterArg, std::optional<int> lastArg, std::optional<response::Value> beforeArg)
{
{ service::AwaitableObject<std::shared_ptr<FolderConnection>> { impl.getUnreadCounts(std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) } };
};
template <class TImpl>
concept getAppointmentsByIdWithParams = requires (TImpl impl, service::FieldParams params, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Appointment>>> { impl.getAppointmentsById(std::move(params), std::move(idsArg)) } };
};
template <class TImpl>
concept getAppointmentsById = requires (TImpl impl, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Appointment>>> { impl.getAppointmentsById(std::move(idsArg)) } };
};
template <class TImpl>
concept getTasksByIdWithParams = requires (TImpl impl, service::FieldParams params, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Task>>> { impl.getTasksById(std::move(params), std::move(idsArg)) } };
};
template <class TImpl>
concept getTasksById = requires (TImpl impl, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Task>>> { impl.getTasksById(std::move(idsArg)) } };
};
template <class TImpl>
concept getUnreadCountsByIdWithParams = requires (TImpl impl, service::FieldParams params, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Folder>>> { impl.getUnreadCountsById(std::move(params), std::move(idsArg)) } };
};
template <class TImpl>
concept getUnreadCountsById = requires (TImpl impl, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Folder>>> { impl.getUnreadCountsById(std::move(idsArg)) } };
};
template <class TImpl>
concept getNestedWithParams = requires (TImpl impl, service::FieldParams params)
{
{ service::AwaitableObject<std::shared_ptr<NestedType>> { impl.getNested(std::move(params)) } };
};
template <class TImpl>
concept getNested = requires (TImpl impl)
{
{ service::AwaitableObject<std::shared_ptr<NestedType>> { impl.getNested() } };
};
template <class TImpl>
concept getUnimplementedWithParams = requires (TImpl impl, service::FieldParams params)
{
{ service::AwaitableScalar<std::string> { impl.getUnimplemented(std::move(params)) } };
};
template <class TImpl>
concept getUnimplemented = requires (TImpl impl)
{
{ service::AwaitableScalar<std::string> { impl.getUnimplemented() } };
};
template <class TImpl>
concept getExpensiveWithParams = requires (TImpl impl, service::FieldParams params)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Expensive>>> { impl.getExpensive(std::move(params)) } };
};
template <class TImpl>
concept getExpensive = requires (TImpl impl)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<Expensive>>> { impl.getExpensive() } };
};
template <class TImpl>
concept getTestTaskStateWithParams = requires (TImpl impl, service::FieldParams params)
{
{ service::AwaitableScalar<TaskState> { impl.getTestTaskState(std::move(params)) } };
};
template <class TImpl>
concept getTestTaskState = requires (TImpl impl)
{
{ service::AwaitableScalar<TaskState> { impl.getTestTaskState() } };
};
template <class TImpl>
concept getAnyTypeWithParams = requires (TImpl impl, service::FieldParams params, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<UnionType>>> { impl.getAnyType(std::move(params), std::move(idsArg)) } };
};
template <class TImpl>
concept getAnyType = requires (TImpl impl, std::vector<response::IdType> idsArg)
{
{ service::AwaitableObject<std::vector<std::shared_ptr<UnionType>>> { impl.getAnyType(std::move(idsArg)) } };
};
template <class TImpl>
concept getDefaultWithParams = requires (TImpl impl, service::FieldParams params)
{
{ service::AwaitableScalar<std::optional<std::string>> { impl.getDefault(std::move(params)) } };
};
template <class TImpl>
concept getDefault = requires (TImpl impl)
{
{ service::AwaitableScalar<std::optional<std::string>> { impl.getDefault() } };
};
template <class TImpl>
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
{
{ impl.beginSelectionSet(params) };
};
template <class TImpl>
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
{
{ impl.endSelectionSet(params) };
};
} // namespace methods::QueryHas
class [[nodiscard("unnecessary construction")]] Query final
: public service::Object
{
private:
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveNode(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveAppointments(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveTasks(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveUnreadCounts(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveAppointmentsById(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveTasksById(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveUnreadCountsById(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveNested(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveUnimplemented(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveExpensive(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveTestTaskState(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveAnyType(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolveDefault(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolve_typename(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolve_schema(service::ResolverParams&& params) const;
[[nodiscard("unnecessary call")]] service::AwaitableResolver resolve_type(service::ResolverParams&& params) const;
std::shared_ptr<schema::Schema> _schema;
struct [[nodiscard("unnecessary construction")]] Concept
{
virtual ~Concept() = default;
virtual void beginSelectionSet(const service::SelectionSetParams& params) const = 0;
virtual void endSelectionSet(const service::SelectionSetParams& params) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::shared_ptr<Node>> getNode(service::FieldParams&& params, response::IdType&& idArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::shared_ptr<AppointmentConnection>> getAppointments(service::FieldParams&& params, std::optional<int>&& firstArg, std::optional<response::Value>&& afterArg, std::optional<int>&& lastArg, std::optional<response::Value>&& beforeArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::shared_ptr<TaskConnection>> getTasks(service::FieldParams&& params, std::optional<int>&& firstArg, std::optional<response::Value>&& afterArg, std::optional<int>&& lastArg, std::optional<response::Value>&& beforeArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::shared_ptr<FolderConnection>> getUnreadCounts(service::FieldParams&& params, std::optional<int>&& firstArg, std::optional<response::Value>&& afterArg, std::optional<int>&& lastArg, std::optional<response::Value>&& beforeArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::vector<std::shared_ptr<Appointment>>> getAppointmentsById(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::vector<std::shared_ptr<Task>>> getTasksById(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::vector<std::shared_ptr<Folder>>> getUnreadCountsById(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::shared_ptr<NestedType>> getNested(service::FieldParams&& params) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableScalar<std::string> getUnimplemented(service::FieldParams&& params) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::vector<std::shared_ptr<Expensive>>> getExpensive(service::FieldParams&& params) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableScalar<TaskState> getTestTaskState(service::FieldParams&& params) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableObject<std::vector<std::shared_ptr<UnionType>>> getAnyType(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const = 0;
[[nodiscard("unnecessary call")]] virtual service::AwaitableScalar<std::optional<std::string>> getDefault(service::FieldParams&& params) const = 0;
};
template <class T>
struct [[nodiscard("unnecessary construction")]] Model final
: Concept
{
explicit Model(std::shared_ptr<T> pimpl) noexcept
: _pimpl { std::move(pimpl) }
{
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::shared_ptr<Node>> getNode(service::FieldParams&& params, response::IdType&& idArg) const override
{
if constexpr (methods::QueryHas::getNodeWithParams<T>)
{
return { _pimpl->getNode(std::move(params), std::move(idArg)) };
}
else if constexpr (methods::QueryHas::getNode<T>)
{
return { _pimpl->getNode(std::move(idArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getNode)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::shared_ptr<AppointmentConnection>> getAppointments(service::FieldParams&& params, std::optional<int>&& firstArg, std::optional<response::Value>&& afterArg, std::optional<int>&& lastArg, std::optional<response::Value>&& beforeArg) const override
{
if constexpr (methods::QueryHas::getAppointmentsWithParams<T>)
{
return { _pimpl->getAppointments(std::move(params), std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) };
}
else if constexpr (methods::QueryHas::getAppointments<T>)
{
return { _pimpl->getAppointments(std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getAppointments)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::shared_ptr<TaskConnection>> getTasks(service::FieldParams&& params, std::optional<int>&& firstArg, std::optional<response::Value>&& afterArg, std::optional<int>&& lastArg, std::optional<response::Value>&& beforeArg) const override
{
if constexpr (methods::QueryHas::getTasksWithParams<T>)
{
return { _pimpl->getTasks(std::move(params), std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) };
}
else if constexpr (methods::QueryHas::getTasks<T>)
{
return { _pimpl->getTasks(std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getTasks)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::shared_ptr<FolderConnection>> getUnreadCounts(service::FieldParams&& params, std::optional<int>&& firstArg, std::optional<response::Value>&& afterArg, std::optional<int>&& lastArg, std::optional<response::Value>&& beforeArg) const override
{
if constexpr (methods::QueryHas::getUnreadCountsWithParams<T>)
{
return { _pimpl->getUnreadCounts(std::move(params), std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) };
}
else if constexpr (methods::QueryHas::getUnreadCounts<T>)
{
return { _pimpl->getUnreadCounts(std::move(firstArg), std::move(afterArg), std::move(lastArg), std::move(beforeArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getUnreadCounts)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::vector<std::shared_ptr<Appointment>>> getAppointmentsById(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const override
{
if constexpr (methods::QueryHas::getAppointmentsByIdWithParams<T>)
{
return { _pimpl->getAppointmentsById(std::move(params), std::move(idsArg)) };
}
else if constexpr (methods::QueryHas::getAppointmentsById<T>)
{
return { _pimpl->getAppointmentsById(std::move(idsArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getAppointmentsById)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::vector<std::shared_ptr<Task>>> getTasksById(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const override
{
if constexpr (methods::QueryHas::getTasksByIdWithParams<T>)
{
return { _pimpl->getTasksById(std::move(params), std::move(idsArg)) };
}
else if constexpr (methods::QueryHas::getTasksById<T>)
{
return { _pimpl->getTasksById(std::move(idsArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getTasksById)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::vector<std::shared_ptr<Folder>>> getUnreadCountsById(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const override
{
if constexpr (methods::QueryHas::getUnreadCountsByIdWithParams<T>)
{
return { _pimpl->getUnreadCountsById(std::move(params), std::move(idsArg)) };
}
else if constexpr (methods::QueryHas::getUnreadCountsById<T>)
{
return { _pimpl->getUnreadCountsById(std::move(idsArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getUnreadCountsById)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::shared_ptr<NestedType>> getNested(service::FieldParams&& params) const override
{
if constexpr (methods::QueryHas::getNestedWithParams<T>)
{
return { _pimpl->getNested(std::move(params)) };
}
else if constexpr (methods::QueryHas::getNested<T>)
{
return { _pimpl->getNested() };
}
else
{
throw service::unimplemented_method(R"ex(Query::getNested)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableScalar<std::string> getUnimplemented(service::FieldParams&& params) const override
{
if constexpr (methods::QueryHas::getUnimplementedWithParams<T>)
{
return { _pimpl->getUnimplemented(std::move(params)) };
}
else if constexpr (methods::QueryHas::getUnimplemented<T>)
{
return { _pimpl->getUnimplemented() };
}
else
{
throw service::unimplemented_method(R"ex(Query::getUnimplemented)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::vector<std::shared_ptr<Expensive>>> getExpensive(service::FieldParams&& params) const override
{
if constexpr (methods::QueryHas::getExpensiveWithParams<T>)
{
return { _pimpl->getExpensive(std::move(params)) };
}
else if constexpr (methods::QueryHas::getExpensive<T>)
{
return { _pimpl->getExpensive() };
}
else
{
throw service::unimplemented_method(R"ex(Query::getExpensive)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableScalar<TaskState> getTestTaskState(service::FieldParams&& params) const override
{
if constexpr (methods::QueryHas::getTestTaskStateWithParams<T>)
{
return { _pimpl->getTestTaskState(std::move(params)) };
}
else if constexpr (methods::QueryHas::getTestTaskState<T>)
{
return { _pimpl->getTestTaskState() };
}
else
{
throw service::unimplemented_method(R"ex(Query::getTestTaskState)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableObject<std::vector<std::shared_ptr<UnionType>>> getAnyType(service::FieldParams&& params, std::vector<response::IdType>&& idsArg) const override
{
if constexpr (methods::QueryHas::getAnyTypeWithParams<T>)
{
return { _pimpl->getAnyType(std::move(params), std::move(idsArg)) };
}
else if constexpr (methods::QueryHas::getAnyType<T>)
{
return { _pimpl->getAnyType(std::move(idsArg)) };
}
else
{
throw service::unimplemented_method(R"ex(Query::getAnyType)ex");
}
}
[[nodiscard("unnecessary call")]] service::AwaitableScalar<std::optional<std::string>> getDefault(service::FieldParams&& params) const override
{
if constexpr (methods::QueryHas::getDefaultWithParams<T>)
{
return { _pimpl->getDefault(std::move(params)) };
}
else if constexpr (methods::QueryHas::getDefault<T>)
{
return { _pimpl->getDefault() };
}
else
{
throw service::unimplemented_method(R"ex(Query::getDefault)ex");
}
}
void beginSelectionSet(const service::SelectionSetParams& params) const override
{
if constexpr (methods::QueryHas::beginSelectionSet<T>)
{
_pimpl->beginSelectionSet(params);
}
}
void endSelectionSet(const service::SelectionSetParams& params) const override
{
if constexpr (methods::QueryHas::endSelectionSet<T>)
{
_pimpl->endSelectionSet(params);
}
}
private:
const std::shared_ptr<T> _pimpl;
};
explicit Query(std::unique_ptr<const Concept> pimpl) noexcept;
[[nodiscard("unnecessary call")]] service::TypeNames getTypeNames() const noexcept;
[[nodiscard("unnecessary call")]] service::ResolverMap getResolvers() const noexcept;
void beginSelectionSet(const service::SelectionSetParams& params) const override;
void endSelectionSet(const service::SelectionSetParams& params) const override;
const std::unique_ptr<const Concept> _pimpl;
public:
template <class T>
explicit Query(std::shared_ptr<T> pimpl) noexcept
: Query { std::unique_ptr<const Concept> { std::make_unique<Model<T>>(std::move(pimpl)) } }
{
}
[[nodiscard("unnecessary call")]] static constexpr std::string_view getObjectType() noexcept
{
return { R"gql(Query)gql" };
}
};
} // namespace graphql::today::object
#endif // QUERYOBJECT_H