From 77c05311f6881b74cde060bcb33af42326917f15 Mon Sep 17 00:00:00 2001 From: Hays Clark Date: Thu, 20 Dec 2018 13:28:40 -0800 Subject: [PATCH 1/2] code sample reflects params for withClientState apollo-link-state's withClientState() method expects a string or array of typeDefs. --- docs/source/essentials/local-state.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/source/essentials/local-state.md b/docs/source/essentials/local-state.md index 87693c51f45..3d7295dfad9 100644 --- a/docs/source/essentials/local-state.md +++ b/docs/source/essentials/local-state.md @@ -239,9 +239,7 @@ You can optionally pass a client-side schema to the `typeDefs` config property. Your schema should be written in [Schema Definition Language](/docs/graphql-tools/generate-schema.html#schema-language). Let's view our schema for our todo app: ```js -import gql from 'graphql-tag'; - -const typeDefs = gql` +const typeDefs = ` type Todo { id: Int! text: String! From bae8b27954036a45488d92aa509e65a313456575 Mon Sep 17 00:00:00 2001 From: Hugh Willson Date: Wed, 2 Jan 2019 21:58:11 -0500 Subject: [PATCH 2/2] Changelog updates --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e244efd2888..64a3c4f5ed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,8 @@ [@joebernard](https://github.com/joebernard) in [#4206](https://github.com/apollographql/apollo-client/pull/4206)
[@evans](https://github.com/evans) in [#4213](https://github.com/apollographql/apollo-client/pull/4213)
[@danilobuerger](https://github.com/danilobuerger) in [#4214](https://github.com/apollographql/apollo-client/pull/4214)
- [@stubailo](https://github.com/stubailo) in [#4220](https://github.com/apollographql/apollo-client/pull/4220) + [@stubailo](https://github.com/stubailo) in [#4220](https://github.com/apollographql/apollo-client/pull/4220)
+ [@haysclark](https://github.com/haysclark) in [#4255](https://github.com/apollographql/apollo-client/pull/4255) ### Apollo Utilities (vNext)