Open bombergio opened 3 years ago
Sorry for the late reply, see related https://github.com/cloudquery/cq-provider-aws/issues/62
We are currently working on this problem.
One solution to reduce multiple ids is to allow the user define the tables "id or ids" if not we will auto generate one i.e volume_id
column will be id = true.
This will remove unnecessary fields and will allow the provider's id to be used instead of a generated one also making queries more simpler.
Currently, only the
id
field is allowed to be used for the relation. That would generate unnecessary fields where relation could be made by the already present field. Example: Type Volume and Volume Attachment. Volume attachment have fieldVolumeId
, but it could not be used to for the relation mapping.