oliyh / re-graph

A graphql client for clojurescript and clojure
460 stars 39 forks source link

use same function signature for query and mutate functions #55

Closed loomis closed 4 years ago

loomis commented 4 years ago

In the commit af116891b5ababdadad5772f500523878c618c3a, the function signature for mutate changed from using inline arguments to a single vector argument. This looks to have been an accidental change as the query function still uses inline arguments. This PR changes the mutate function signature to be consistent with the query function.

oliyh commented 4 years ago

Hi, thanks for this, it looks like it was a mistake.

I was surprised to see there was no test for the non-re-frame mutate function, I will have to add one.

Cheers