I am playing around with biff to build a toy application, and I am struggling a bit with biff/submit-tx . I think this is clearly a case of me holding it wrong, since I worked through the tutorial pretty easily, but I can't seem to make a simple delete call work. I have something like this:
(biff/submit-tx ctx
[{:db/op :delete
:db/doc-type :game
:game/id guid}])
And I get a bad implementation message:
java.lang.IllegalArgumentException: No implementation of method: :submit-tx of protocol: #'xtdb.api/PXtdbSubmitClient found for class: nilvery common error, special message would be helpful for newcomers
this was... a good one.
I miskeyed the :keys destructuring in my function signature.
{:keys [biff/db session :as ctx]}
Anyway, I sorted it out.
ha glad you got it working! but yeah, for future reference, that kind of error message usually means the wrong thing is getting passed in for ctx. I oughtta have submit-tx/other functions check for that immediately and give a better error message.