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

apollo-client 2.0 #57

Merged
merged 1 commit into from
Jan 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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