vadimdemedes / draqula

🧛 GraphQL client for minimalistic React apps
https://draqulajs.com
771 stars 15 forks source link

Node does not exist: type:XXX #9

Closed knoopx closed 4 years ago

knoopx commented 5 years ago

Whenever I try to run a mutation I get a Node does not exist: type:XXX error, triggered here:

async mutate(query, variables, options) {
    ...
    for (const typename of typenames) {
      const dependantQueries = this.graph.dependantsOf("type:".concat(typename)).map(queryId => queryId.replace('query:', ''));
      refetchQueries.push(...dependantQueries);
    }
vadimdemedes commented 4 years ago

Fixed via https://github.com/vadimdemedes/draqula/pull/10.