remove unused resolvers
This commit is contained in:
parent
8e923a6e11
commit
16fe253f41
|
@ -11,7 +11,6 @@ query Profile($id: ID!) {
|
|||
type
|
||||
name
|
||||
creationTime
|
||||
lifetimeReceived @client
|
||||
pledgesInfos {
|
||||
id
|
||||
token
|
||||
|
|
|
@ -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 })
|
||||
|
|
Loading…
Reference in New Issue