Register object and field for custom list of users
The following code creates an object type called
StuntPerformer and creates a field on the RootQuery called
stuntPerformers that returns a custom list of users.
In this case, the list of users are the admins of the website, but custom logic could be added to return a curated list of users.
You can now query for these stuntPerformers with the following GraphQL: