```dart
const getPost = 'getPost';
const graphQLDocument = '''query GetPost(\$id: ID!) {
  $getPost(id: \$id) {
    id
    title
    rating
    status
    comments {
      items {
        id
        postID
        content
      }
    }
  }
}''';
final getPostRequest = GraphQLRequest<Post>(
  document: graphQLDocument,
  modelType: Post.classType,
  variables: <String, String>{'id': somePostId},
  decodePath: getPost,
);
```

Then, query for the `Post` with nested comments included in decoded response:
```dart
Future<void> queryPostWithNestedComments(
  GraphQLRequest<Post> getPostRequest,
) async {
  final response = await Amplify.API.query(request: getPostRequest).response;
  safePrint('Response $response');
}
```
