---
title: "Comment by Peter Dyas on \"#StudioSeptember: Create Components with Nested Data\" | Hashnode"
description: "I changed the sample code to use const comments = await SSR.DataStore.query(Comment, c =&gt; c.recipeID.eq(recipe.id)) seems to work now"
url: "https://hashnode.com/posts/studioseptember-create-components-with-nested-data/6320d88b5483096daa0a9069/comment/63f1180d0e63a77a616fe2f1"
---

[Discussion](https://hashnode.com/posts/studioseptember-create-components-with-nested-data/6320d88b5483096daa0a9069)

Comment [#StudioSeptember: Create Components with Nested Data](https://hashnode.com/posts/studioseptember-create-components-with-nested-data/6320d88b5483096daa0a9069)

[Peter Dyas](https://hashnode.com/@Peterdyas)

[Feb 18, 2023](https://hashnode.com/posts/studioseptember-create-components-with-nested-data/6320d88b5483096daa0a9069/comment/63f1180d0e63a77a616fe2f1)

I changed the sample code to use const comments = await SSR.DataStore.query(Comment, c => c.recipeID.eq(recipe.id)) seems to work now
