## API Lazy Load Integration Tests ### Prerequisites - AWS CLI - Version used: `amplify -v` => `` ### Set-up 1. `amplify init` These tests were provisioned with V2 Transform, CPK enabled, and with the lazy loading feature flag. Review or make updates to cli.json "transformerversion":2 "respectprimarykeyattributesonconnectionfield": true "generateModelsForLazyLoadAndCustomSelectionSet": true 2. `amplify add api` - Use API Key - Disable Conflict detection (required for DataStore) - Use the `lazyload-schema.graphql` from this test directory. 3. `amplify push` ```perl ? Are you sure you want to continue? `Yes` ? Do you want to generate code for your newly created GraphQL API `No` ``` 4. Copy `amplifyconfiguration.json` to a new file named `GraphQLLazyLoadTests-amplifyconfiguration.json` inside `~/.aws-amplify/amplify-ios/testconfiguration/` ```perl cp amplifyconfiguration.json ~/.aws-amplify/amplify-ios/testconfiguration/GraphQLLazyLoadTests-amplifyconfiguration.json ```