@@ -76,8 +76,8 @@ GRAPHQLSERVICE_EXPORT error_path buildErrorPath(const std::optional<field_path>&
76
76
struct schema_error
77
77
{
78
78
std::string message;
79
- schema_location location;
80
- error_path path;
79
+ schema_location location {} ;
80
+ error_path path {} ;
81
81
};
82
82
83
83
GRAPHQLSERVICE_EXPORT response::Value buildErrorValues (std::list<schema_error>&& structuredErrors);
@@ -579,7 +579,7 @@ struct ResolverParams : SelectionSetParams
579
579
struct ResolverResult
580
580
{
581
581
response::Value data;
582
- std::list<schema_error> errors;
582
+ std::list<schema_error> errors {} ;
583
583
};
584
584
585
585
using AwaitableResolver = internal::Awaitable<ResolverResult>;
@@ -1195,10 +1195,10 @@ struct RequestResolveParams
1195
1195
response::Value variables { response::Type::Map };
1196
1196
1197
1197
// Optional async execution awaitable.
1198
- await_async launch;
1198
+ await_async launch {} ;
1199
1199
1200
1200
// Optional sub-class of RequestState which will be passed to each resolver and field accessor.
1201
- std::shared_ptr<RequestState> state;
1201
+ std::shared_ptr<RequestState> state {} ;
1202
1202
};
1203
1203
1204
1204
struct RequestSubscribeParams
@@ -1212,10 +1212,10 @@ struct RequestSubscribeParams
1212
1212
response::Value variables { response::Type::Map };
1213
1213
1214
1214
// Optional async execution awaitable.
1215
- await_async launch;
1215
+ await_async launch {} ;
1216
1216
1217
1217
// Optional sub-class of RequestState which will be passed to each resolver and field accessor.
1218
- std::shared_ptr<RequestState> state;
1218
+ std::shared_ptr<RequestState> state {} ;
1219
1219
};
1220
1220
1221
1221
struct RequestUnsubscribeParams
@@ -1224,7 +1224,7 @@ struct RequestUnsubscribeParams
1224
1224
SubscriptionKey key;
1225
1225
1226
1226
// Optional async execution awaitable.
1227
- await_async launch;
1227
+ await_async launch {} ;
1228
1228
};
1229
1229
1230
1230
using SubscriptionArguments = std::map<std::string_view, response::Value>;
@@ -1240,7 +1240,7 @@ struct SubscriptionFilter
1240
1240
1241
1241
// Optional field directives filter, which can either be a set of required directives and
1242
1242
// arguments, or a callback which returns true if the directives match custom criteria.
1243
- std::optional<std::variant<Directives, SubscriptionDirectiveFilterCallback>> directives;
1243
+ std::optional<std::variant<Directives, SubscriptionDirectiveFilterCallback>> directives {} ;
1244
1244
};
1245
1245
1246
1246
// Deliver to a specific subscription key, or apply custom criteria for the field name, arguments,
@@ -1254,13 +1254,13 @@ struct RequestDeliverParams
1254
1254
1255
1255
// Optional filter to control which subscriptions will receive the event. If not specified,
1256
1256
// every subscription on this field will receive the event and evaluate their queries.
1257
- RequestDeliverFilter filter;
1257
+ RequestDeliverFilter filter {} ;
1258
1258
1259
1259
// Optional async execution awaitable.
1260
- await_async launch;
1260
+ await_async launch {} ;
1261
1261
1262
1262
// Optional override for the default Subscription operation object.
1263
- std::shared_ptr<Object> subscriptionObject;
1263
+ std::shared_ptr<Object> subscriptionObject {} ;
1264
1264
};
1265
1265
1266
1266
using TypeMap = internal::string_view_map<std::shared_ptr<Object>>;
0 commit comments