Using urql/core as NodeJS standalone client #1665
-
I'm trying to execute a mutation in a Node application, but doesn't seem to return anything, and it isn't working, but also throws no errors.
|
Beta Was this translation helpful? Give feedback.
Answered by
JoviDeCroock
May 24, 2021
Replies: 1 comment 7 replies
-
const res = await (client.mutation(ADDATTACH, { attach: atts }).toPromise()) EDIT: |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
JoviDeCroock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
executeMutation
will return astream
which I don't think is what you're looking for, alternatively if you want to use promisified stuff you can useclient.mutate
EDIT:
client.mutate
-->client.mutation