Skip to content

Commit

Permalink
Merge pull request #311 from dahjelle/export-writeToStore
Browse files Browse the repository at this point in the history
Export writeQueryToStore and writeFragmentToStore.
  • Loading branch information
Sashko Stubailo authored Jun 24, 2016
2 parents 5ce481b + 28f372b commit 2ea9253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Expect active development and potentially significant breaking changes in the `0

### vNEXT

- Exported `writeQueryToStore` and `writeFragmentToStore` directly from `apollo-client` to match `readQueryFromStore` and `readFragmentFromStore`.

### v0.3.19

- Exported `addTypename` query transform directly from `apollo-client` so that it doesn't need to be imported from a submodule. [PR #303](https://github.com/apollostack/apollo-client/pull/303)
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ import {
readFragmentFromStore,
} from './data/readFromStore';

import {
writeQueryToStore,
writeFragmentToStore,
} from './data/writeToStore';

import {
IdGetter,
} from './data/extensions';
Expand All @@ -44,6 +49,8 @@ export {
readQueryFromStore,
readFragmentFromStore,
addTypenameToSelectionSet as addTypename,
writeQueryToStore,
writeFragmentToStore,
};

export default class ApolloClient {
Expand Down

0 comments on commit 2ea9253

Please sign in to comment.