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
let me think for a second about the nested comments.
depending on how you want to represent that nesting, and what you want to show at the beginning (before having expanded anything), I think you’ll want different ways of loading it on the server.
the most straightforward way in the GraphQL schema would be to give each comment a nested_comments field, and then just fetch those documents with a resolver.
then the fetchMore could simply use a query that accesses more comments from that particular document.
if you want to load everything at once, you could do that as well (with a special loader), but still access them in a nested fashion.
I guess I’d need some more specifics to know what the best way is. But there’s definitely a lot of possibilities with GraphQL, and they can be made efficient as well
🤔 What you will need to know
Meteor, React, Apollo, and GraphQL.
🎯 The Goal
Recreate Telescope's Reddit-style nested comment threads with Apollo.
There are basically two approaches:
📋 Step by Step
devel
branch, mentioning this issue.Ping us here, in the Telescope Slack room or on Twitter if you have any questions 😉
The text was updated successfully, but these errors were encountered: