You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't so much an issue, but I've searched everywhere and can't really find an answer specific to my problem with nested queries using the Apollo boilerplate.
I'm using the basic boilerplate and have modified FeedPage.js and its associated query to fit my own GraphQL server. It works great for the most part; except when I try to query an array nested within a parent array. For example, consider this query:
query {
posts {
nodes {
id
content
comments {
nodes {
id
content
}
}
}
}
}
This isn't so much an issue, but I've searched everywhere and can't really find an answer specific to my problem with nested queries using the Apollo boilerplate.
I'm using the basic boilerplate and have modified FeedPage.js and its associated query to fit my own GraphQL server. It works great for the most part; except when I try to query an array nested within a parent array. For example, consider this query:
query {
posts {
nodes {
id
content
comments {
nodes {
id
content
}
}
}
}
}
Now, the following code works:
But my issue is: what if I want to return comment.content, and map a list of comments to keys?
I'm really stuck here and would greatly appreciate some guidance. Thanks!
The text was updated successfully, but these errors were encountered: