-
Notifications
You must be signed in to change notification settings - Fork 247
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
feature(amplify_api): Graphql helpers, include parent and decode nested/parent values #1055
feature(amplify_api): Graphql helpers, include parent and decode nested/parent values #1055
Conversation
…sted models from mutations, integ tests pass, still need to update queries and test them
…els with belongsTo, transform JSON in response for parents and children
Codecov Report
@@ Coverage Diff @@
## feature/graphql_helpers_updated #1055 +/- ##
===================================================================
+ Coverage 66.63% 66.77% +0.13%
===================================================================
Files 294 295 +1
Lines 10020 10065 +45
Branches 396 396
===================================================================
+ Hits 6677 6721 +44
- Misses 3203 3204 +1
Partials 140 140
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good thanks for making these changes. Just left one question.
'rating': 0, | ||
'comments': [ | ||
{ | ||
'serializedData': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for writing all of the code to translate between JSON formats. Do you think it would have been better if we changed our own JSON instead to ensure total uniformity of JSON.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
long-term, aligning would be better, just don't have time right now to reconcile the datastore part and add extra codegen logic. This is the safest/easiest thing to do for now.
* chore(amplify_api): GraphQL helper move dependencies (#729) * feat(amplify_api): GraphQL helper get query (#742) * feat(amplify_api): GraphQL Response Decoding (#763) * feat(amplify_api): GraphQL Query Helper - List (#771) * feat(amplify_api): GraphQL Mutate Helper - Create (#778) * feat(amplify_api): GraphQL Mutate Helper - Update (#779) * feat(amplify_api): GraphQL Mutate Helper - Delete (#780) * feat(amplify_api): GraphQL Helpers Integration Tests (#785) * fix(amplify_api): GraphQL Helper Clean Up (#803) * graphql helpers: slight refactor to datastore interface QueryFieldOpe… (#962) * Graphql helpers pagination helpers (#947) * Graphql helpers: query predicates translated to filters and conditions for GraphQL requests (#973) * chore(amplify_api): graphql helpers, add parent selection set for models with belongsTo, transform JSON in response for parents and children * chore(amplify_api): parse nested responses recursively * chore(amplify_api): make data nullable in graphql responses (#1007) * chore(amplify_api): graphql helpers, mutations on models with parents (#1004) * feat(amplify_api): Graphql helpers, include parent and decode nested/parent values (#1055) Co-authored-by: Elijah Quartey <[email protected]> BREAKING CHANGE: data field nullable in GraphQLResponse
* feat(amplify_api): model-based graphql helpers (#1076) * chore(amplify_api): GraphQL helper move dependencies (#729) * feat(amplify_api): GraphQL helper get query (#742) * feat(amplify_api): GraphQL Response Decoding (#763) * feat(amplify_api): GraphQL Query Helper - List (#771) * feat(amplify_api): GraphQL Mutate Helper - Create (#778) * feat(amplify_api): GraphQL Mutate Helper - Update (#779) * feat(amplify_api): GraphQL Mutate Helper - Delete (#780) * feat(amplify_api): GraphQL Helpers Integration Tests (#785) * fix(amplify_api): GraphQL Helper Clean Up (#803) * graphql helpers: slight refactor to datastore interface QueryFieldOpe… (#962) * Graphql helpers pagination helpers (#947) * Graphql helpers: query predicates translated to filters and conditions for GraphQL requests (#973) * chore(amplify_api): graphql helpers, add parent selection set for models with belongsTo, transform JSON in response for parents and children * chore(amplify_api): parse nested responses recursively * chore(amplify_api): make data nullable in graphql responses (#1007) * chore(amplify_api): graphql helpers, mutations on models with parents (#1004) * feat(amplify_api): Graphql helpers, include parent and decode nested/parent values (#1055) Co-authored-by: Elijah Quartey <[email protected]> BREAKING CHANGE: data field nullable in GraphQLResponse
This PR contains additional functionality for child/parent models in API graphql helpers.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.