-
Notifications
You must be signed in to change notification settings - Fork 491
Examples
Pavel Nikolov edited this page Apr 20, 2020
·
5 revisions
Examples can be found in the example folder of the project. Currently, these are the examples available:
- caching - This is a short app that allows you to imperatively chose how long to cache each resolver for using helper functions. It supports private and public caching. If at least one of the resolvers from a query supports only private caching, then the entire query can be cached only privately. If all resolvers are publicly cacheable, then the response of the query is publicly cacheable and its TTL is equal the lowest TTL value of all the resolvers
- customerrors - demonstrates the use of error extensions
- social - this demonstrates how to use struct fields as resolvers *starwars - This example is popular among GraphQL libraries and demonstrates a more advanced example using in-memory data store.