Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Helpers should allow setting GraphQLRequest parameters #2352

Closed
dnys1 opened this issue Nov 11, 2022 · 1 comment
Closed

Model Helpers should allow setting GraphQLRequest parameters #2352

dnys1 opened this issue Nov 11, 2022 · 1 comment
Assignees
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced GraphQL API Issues related to the API (GraphQL) Category

Comments

@dnys1
Copy link
Contributor

dnys1 commented Nov 11, 2022

Currently, model helpers do not allow setting GraphQLRequest parameters like apiName, authorizationMode, headers, etc. This prevents them from being used in multi-auth settings.

Current

static GraphQLRequest<T> create<T extends Model>(T model);

Expected

static GraphQLRequest<T> create<T extends Model>(
  T model, {
  String? apiName,
  APIAuthorizationType? authorizationMode,
  Map<String, String>? headers,
});
@dnys1 dnys1 added bug Something is not working; the issue has reproducible steps and has been reproduced GraphQL API Issues related to the API (GraphQL) Category labels Nov 11, 2022
@ragingsquirrel3
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced GraphQL API Issues related to the API (GraphQL) Category
Projects
None yet
Development

No branches or pull requests

2 participants