graphql-server
graphql-server copied to clipboard
Handling Populated Fields
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?