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

fix(api): allow setting extra GQL request params from model helpers #2423

Merged
merged 1 commit into from Nov 28, 2022
Merged

fix(api): allow setting extra GQL request params from model helpers #2423

merged 1 commit into from Nov 28, 2022

Conversation

ragingsquirrel3
Copy link
Contributor

Fix for Issue #2352.

Adds support for setting extra properties of GraphQLRequest: apiName, authorizationMode and headers. These are things that can be done on manual request but cannot be done w helpers which makes them less useful in apps that require these properties on requests (multi auth mode use cases).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ragingsquirrel3 ragingsquirrel3 requested a review from a team as a code owner November 28, 2022 19:41
ModelType<T> modelType, String id);
ModelType<T> modelType,
String id, {
QueryPredicate? where,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where was missing as well here

@ragingsquirrel3 ragingsquirrel3 merged commit a31b64f into aws-amplify:next Nov 28, 2022
@ragingsquirrel3 ragingsquirrel3 deleted the feat/api-add-model-helper-params branch November 28, 2022 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants