remove unused resolvers

This commit is contained in:
Barry Gitarts 2019-08-26 19:41:10 -04:00 committed by Barry G
parent 8e923a6e11
commit 16fe253f41
2 changed files with 1 additions and 9 deletions

View File

@ -11,7 +11,6 @@ query Profile($id: ID!) {
type type
name name
creationTime creationTime
lifetimeReceived @client
pledgesInfos { pledgesInfos {
id id
token token

View File

@ -48,14 +48,7 @@ class App extends React.Component {
setGraphClient = network => { setGraphClient = network => {
const graphUri = uris[network] const graphUri = uris[network]
const client = new ApolloClient({ const client = new ApolloClient({
uri: graphUri, uri: graphUri
resolvers: {
Profile: {
lifetimeReceived(infos) {
return infos.pledgesInfos[0].lifetimeReceived
}
}
}
}) })
this.client = client this.client = client
this.setState({ clientReady: true }) this.setState({ clientReady: true })