You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
I'm trying to use mutations with ReasonApollo.Consumer.
However, I'm not sure how I can do this:
let mutation = ...;
client.mutate(mutation);
gives me the error:
This expression has type
(ApolloClient.mutationObj =>
Js.Promise.t(ReasonApolloMutation.renderPropObjJS))
[@bs.meth]
It is not a function.
using # syntax like client#mutate(mutation); gives me
This expression has type ApolloClient.generatedApolloClient
It has no method mutate
and using ## syntax like client##mutate(mutation); gives me
This has type:
ApolloClient.generatedApolloClient
But somewhere wanted:
Js.t('a)
So, the way I understand it, either the client should be a Js.t to allow calling the bs.meth or they shouldn't be tagged with bs.meth to allow calling using the typical method syntax.
The text was updated successfully, but these errors were encountered:
I'm trying to use mutations with
ReasonApollo.Consumer
.However, I'm not sure how I can do this:
gives me the error:
using
#
syntax likeclient#mutate(mutation);
gives meand using
##
syntax likeclient##mutate(mutation);
gives meSo, the way I understand it, either the client should be a
Js.t
to allow calling thebs.meth
or they shouldn't be tagged withbs.meth
to allow calling using the typical method syntax.The text was updated successfully, but these errors were encountered: