Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
apollo-client 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matart15 committed Jan 15, 2018
1 parent 9c9d28f commit 3586799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/aor-graphql-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ You can specify the client options by calling `buildApolloClient` like this:
import { createNetworkInterface } from 'react-apollo';

buildApolloClient({
client: {
clientOptions: {
networkInterface: createNetworkInterface({
uri: 'http://api.myproduct.com/graphql',
}),
Expand Down
6 changes: 3 additions & 3 deletions packages/aor-graphql-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ const getOptions = (options, aorFetchType, resource) => {

export default async options => {
const {
client: clientOptions,
client: clientObject,
clientOptions,
introspection,
resolveIntrospection,
buildQuery: buildQueryFactory,
override = {},
...otherOptions
} = merge({}, defaultOptions, options);

const client =
clientOptions && clientOptions instanceof ApolloClient ? clientOptions : buildApolloClient(clientOptions);
const client = clientObject && buildApolloClient(clientOptions);

let introspectionResults;
if (introspection) {
Expand Down

0 comments on commit 3586799

Please sign in to comment.