@@ -76,8 +76,8 @@ GRAPHQLSERVICE_EXPORT error_path buildErrorPath(const std::optional<field_path>&
7676struct schema_error
7777{
7878 std::string message;
79- schema_location location;
80- error_path path;
79+ schema_location location {} ;
80+ error_path path {} ;
8181};
8282
8383GRAPHQLSERVICE_EXPORT response::Value buildErrorValues (std::list<schema_error>&& structuredErrors);
@@ -579,7 +579,7 @@ struct ResolverParams : SelectionSetParams
579579struct ResolverResult
580580{
581581 response::Value data;
582- std::list<schema_error> errors;
582+ std::list<schema_error> errors {} ;
583583};
584584
585585using AwaitableResolver = internal::Awaitable<ResolverResult>;
@@ -1195,10 +1195,10 @@ struct RequestResolveParams
11951195 response::Value variables { response::Type::Map };
11961196
11971197 // Optional async execution awaitable.
1198- await_async launch;
1198+ await_async launch {} ;
11991199
12001200 // 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 {} ;
12021202};
12031203
12041204struct RequestSubscribeParams
@@ -1212,10 +1212,10 @@ struct RequestSubscribeParams
12121212 response::Value variables { response::Type::Map };
12131213
12141214 // Optional async execution awaitable.
1215- await_async launch;
1215+ await_async launch {} ;
12161216
12171217 // 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 {} ;
12191219};
12201220
12211221struct RequestUnsubscribeParams
@@ -1224,7 +1224,7 @@ struct RequestUnsubscribeParams
12241224 SubscriptionKey key;
12251225
12261226 // Optional async execution awaitable.
1227- await_async launch;
1227+ await_async launch {} ;
12281228};
12291229
12301230using SubscriptionArguments = std::map<std::string_view, response::Value>;
@@ -1240,7 +1240,7 @@ struct SubscriptionFilter
12401240
12411241 // Optional field directives filter, which can either be a set of required directives and
12421242 // 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 {} ;
12441244};
12451245
12461246// Deliver to a specific subscription key, or apply custom criteria for the field name, arguments,
@@ -1254,13 +1254,13 @@ struct RequestDeliverParams
12541254
12551255 // Optional filter to control which subscriptions will receive the event. If not specified,
12561256 // every subscription on this field will receive the event and evaluate their queries.
1257- RequestDeliverFilter filter;
1257+ RequestDeliverFilter filter {} ;
12581258
12591259 // Optional async execution awaitable.
1260- await_async launch;
1260+ await_async launch {} ;
12611261
12621262 // Optional override for the default Subscription operation object.
1263- std::shared_ptr<Object> subscriptionObject;
1263+ std::shared_ptr<Object> subscriptionObject {} ;
12641264};
12651265
12661266using TypeMap = internal::string_view_map<std::shared_ptr<Object>>;
0 commit comments