Fork me on GitHub
#graphql
<
2022-09-24
>
hadils22:09:24

Hi! I am using re-graph with AWS AppSync. I have a problem with this code:

(rf/dispatch [::rg/subscribe
                  {:id        "help"
                   :query     "subscription MySubscription {\n  onCreateTestModel {\n    id\n    title\n  }\n}"
                   :variables {:some "variable"}
                   :callback  [::on-thing]}])
I am getting the error:
Error: Doesn't support name:
which indicates there’s a nil parameter to the name function as far as I can tell. I looked through the re-graph code (0.2.0) and none of the instances where name is invoked seem to be problematic. Any run into this or can help me? Thanks in advance!

oliy08:09:05

Hello, are you getting any stack trace at all (are you on cljs?)

oliy09:09:35

And how did you call init?

hadils11:09:19

Good morning @U076R6N1L. I called init and am not getting a stacktrace

hadils12:09:38

I am on cljs, I am using Krell and re-frame

oliy09:09:49

are you sure the error is not occurring in your callback? if you don't have a stacktrace, how do you know the error is coming from re-graph?