Skip to content

Adding nodes to query connection type #521

Answered by hayes
BengtHagemeister asked this question in Q&A
Discussion options

You must be logged in to vote

I think you should be able to do nodes: t.field({ type: Post, resolve: (connection) => connection.edges.map(edge => edge.node) })

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@BengtHagemeister
Comment options

@hayes
Comment options

@hayes
Comment options

@BengtHagemeister
Comment options

Answer selected by BengtHagemeister
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants