aws-amplify / aws-amplify/amplify-studio
Autogenerated code has relationship ID in queries
- Dominant language
- No language data
- Stars
- 135
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
### Before opening, please confirm:
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-adminui/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-adminui/blob/main/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
### App Id
d22h1kgc6xq1y7
### Region
eu-central-1
### Environment name
rescue
### Figma File Version (if applicable)
_No response_
### Amplify CLI Version
_No response_
### If applicable, what version of Node.js are you using?
_No response_
### What operating system are you using?
_No response_
### Browser type?
_No response_
### Describe the bug
Hello,
when I pull the UI Library code, it also generates the relationship ID under queries.
for example abcTypesByAbcID is not in queries file.
import {
abcTypesByAbcID,
getAbc,
listTypes,
listUsers,
} from "../graphql/queries";
Regards.
### Expected behavior
Not create abcTypesByAbcID,
### Reproduction steps
pull UI-Library on react.
### Project Identifier
_No response_
### Additional information
_No response_
Contributor guide
Research direction
Reproduce the issue by pulling the UI Library for React, then inspect the generated ../graphql/queries file and the import of abcTypesByAbcID. Determine why the relationship ID query is generated; done means the relationship ID is absent from queries and the remaining generated imports work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100