Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

(populate) - update docs (#871)

* update populateExchange documentation

* Update auto-populate-mutations.md

* update wording

* Update exchanges/populate/README.md

Co-authored-by: Phil Plückthun <phil@kitten.sh>

Co-authored-by: Phil Plückthun <phil@kitten.sh>

authored by

Jovi De Croock
Phil Plückthun
and committed by
GitHub
52a26079 f80c96d7

+8 -2
+4 -1
docs/advanced/auto-populate-mutations.md
··· 33 33 34 34 const client = createClient({ 35 35 // ... 36 - exchanges: [dedupExchange, populateExchange, cacheExchange, fetchExchange], 36 + exchanges: [dedupExchange, populateExchange({ schema }), cacheExchange, fetchExchange], 37 37 }); 38 38 ``` 39 39 ··· 42 42 own. It should also be placed after the `dedupExchange` to avoid unnecessary work. 43 43 44 44 Adding the `populateExchange` now enables us to use the `@populate` directive in our mutations. 45 + 46 + The `schema` option is the introspection result for your backend graphql schema, more information 47 + about how to get your schema can be found [in the "Schema Awareness" Page of the Graphcache documentation.](../graphcache/schema-awareness.md#getting-your-schema). 45 48 46 49 ## Example usage 47 50
+4 -1
exchanges/populate/README.md
··· 22 22 23 23 const client = createClient({ 24 24 url: 'http://localhost:1234/graphql', 25 - exchanges: [dedupExchange, populateExchange, cacheExchange, fetchExchange], 25 + exchanges: [dedupExchange, populateExchange({ schema }), cacheExchange, fetchExchange], 26 26 }); 27 27 ``` 28 + 29 + The `schema` option is the introspection result for your backend graphql schema, more information 30 + about how to get your schema can be found [in the "Schema Awareness" Page of the Graphcache documentation.](https://formidable.com/open-source/urql/docs/graphcache/schema-awareness/#getting-your-schema). 28 31 29 32 ## Example usage 30 33