We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c906b commit 0f25283Copy full SHA for 0f25283
src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx
@@ -339,7 +339,11 @@ import 'models/ModelProvider.dart';
339
Future<void> main() async {
340
// highlight-start
341
try {
342
- final api = AmplifyAPI(modelProvider: ModelProvider.instance);
+ final api = AmplifyAPI(
343
+ options: APIPluginOptions(
344
+ modelRegistration: ModelProvider()
345
+ )
346
+ );
347
await Amplify.addPlugins([api]);
348
await Amplify.configure(outputs);
349
0 commit comments