You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final result =await graphqlClient.queryGetQuotesDates(
OptionsQueryGetQuotesDates(
variables:VariablesQueryGetQuotesDates(
daysToReturn: daysToReturn,
),
),
);
I understand that OptionsQueryGetQuotesDates has many optional items to configure the query, but I feel that it would be a lot better if the generated code allowed me to do this instead:
final result =await graphqlClient.queryGetQuotesDates(daysToReturn: daysToReturn);
Thus, all the fields inside OptionsQueryGetQuotesDates would be generated inside queryGetQuotesDates as optional named parameters instead, collapsing queryGetQuotesDates, OptionsQueryGetQuotesDates, and VariablesQueryGetQuotesDates as one inside queryGetQuotesDates.
This approach seems more aligned with the purpose of the package, which is to avoid us from writing boilerplate code.
The text was updated successfully, but these errors were encountered:
👋 @feinstein
Thank you for raising an issue. I will investigate the issue and get back to you as soon as possible.
Please make sure you have provided enough context.
This library is created and maintained by me, @budde377. Please consider supporting my work and ensure our survival by donating here.
I have the following query:
Which I am using as:
I understand that
OptionsQueryGetQuotesDates
has many optional items to configure the query, but I feel that it would be a lot better if the generated code allowed me to do this instead:Thus, all the fields inside
OptionsQueryGetQuotesDates
would be generated insidequeryGetQuotesDates
as optional named parameters instead, collapsingqueryGetQuotesDates
,OptionsQueryGetQuotesDates
, andVariablesQueryGetQuotesDates
as one insidequeryGetQuotesDates
.This approach seems more aligned with the purpose of the package, which is to avoid us from writing boilerplate code.
The text was updated successfully, but these errors were encountered: