graphql-server icon indicating copy to clipboard operation
graphql-server copied to clipboard

Handling Populated Fields

Open viztastic opened this issue 9 years ago • 0 comments

Thanks for this @hekike , really helpful.

Your GraphQL Schema that a user is only interested in returning the populated list of friends. What if we need the flexibility to return the list of IDs OR the list of actual friends. How would we set the Type of the 'friends' field to accomodate both scenarios?

viztastic avatar Jan 02 '17 00:01 viztastic