awslabs / awslabs/aws-mobile-appsync-sdk-android
Make generated code's field name different then in schema
- Dominant language
- Java
- Stars
- 106
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
The issue arises when in the schema some field names are changed and to implement these changes one manually have to change all the references to the generated source files fields and hence their setters and getters.
As in Room api, we can use annotation `@ColumnInfo(name = "attribute_name")` and can use any field name for the `attribute_name` for example `name` and it will work just fine means no need to change any references to the field or setters and getters to change the `attribute_name` in the schema, just change annotation to `@ColumnInfo(name = "new_attribute_name")` and you are all set.
Well, I know Room is an ORM API but the feature I am talking about is necessary.
Contributor guide
Research direction
No files, tests, or entry points are named. Start by tracing how the GraphQL schema produces generated fields, setters, and getters, then compare the requested annotation-based separation of schema names from source names. Done means schema field renames no longer require changing references to generated fields or accessors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, graphql, java
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100