Would anyone be so kind to point me to examples writing resolver functions for creating connections from two existing nodes, e.g. adding a post as a favorite to the user? (user: { favorites: args.id } )?
I bought Wes Bos’s advanced react course and am really confused by the way he creates relations by adding an extra in-between type for connections. In his project, a connection becomes its own new object. Doesn’t this defeat the entire purpose of using GraphQL? Shouldn’t I be able to query Posts where favoritedBy: User, or query Users where favoritePosts: [Post] and get the same results?