docs icon indicating copy to clipboard operation
docs copied to clipboard

Gen2 Flutter Customize Secondary Indexes page examples in Typescript not Dart

Open matt-prinold-grazinga opened this issue 9 months ago • 3 comments

Describe the content issue:

The usage examples for Gen2 Flutter documentation on Customize Secondary Indexes page are in typescript not Dart.

URL page where content issue is: https://docs.amplify.aws/flutter/build-a-backend/data/data-modeling/secondary-index/

matt-prinold-grazinga avatar Mar 21 '25 08:03 matt-prinold-grazinga

Hi @matt-prinold-grazinga thanks for reaching out. With Amplify Gen2, setting up the data resources and modeling the schema are done by TypeScript. That's a separate process from write your Flutter app using Dart. Therefore the documentation contains correct examples.

HuiSF avatar Apr 17 '25 20:04 HuiSF

@HuiSF Please actually look at the documentation page i shared before responding with incorrect information, the examples i'm referring to clearly state src/App.tsx files. They are example client query's, not amplify configuration examples so given these are in the flutter amplify documentation they should be written in dart.

matt-prinold-grazinga avatar Apr 17 '25 20:04 matt-prinold-grazinga

Oh good find, thanks for pointing this out @matt-prinold-grazinga, IIRC, Amplify Flutter doesn't have the corresponding automatically generated list<Model>By<IndexField> methods. I will mark this a bug and look into how to fix it.

HuiSF avatar Apr 18 '25 01:04 HuiSF

It looks like the documentation was updated for Flutter but this ticket was never closed.

tylerjroach avatar Aug 15 '25 19:08 tylerjroach