From 16fe253f41b533fa30183d0cd8be2bd715814d14 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 26 Aug 2019 19:41:10 -0400 Subject: [PATCH] remove unused resolvers --- src/components/projects/queries.js | 1 - src/dapp.js | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/projects/queries.js b/src/components/projects/queries.js index dd4a555..dccf087 100644 --- a/src/components/projects/queries.js +++ b/src/components/projects/queries.js @@ -11,7 +11,6 @@ query Profile($id: ID!) { type name creationTime - lifetimeReceived @client pledgesInfos { id token diff --git a/src/dapp.js b/src/dapp.js index e657f2c..3e9b33c 100644 --- a/src/dapp.js +++ b/src/dapp.js @@ -48,14 +48,7 @@ class App extends React.Component { setGraphClient = network => { const graphUri = uris[network] const client = new ApolloClient({ - uri: graphUri, - resolvers: { - Profile: { - lifetimeReceived(infos) { - return infos.pledgesInfos[0].lifetimeReceived - } - } - } + uri: graphUri }) this.client = client this.setState({ clientReady: true })