Skip to content

Using urql/core as NodeJS standalone client #1665

Answered by JoviDeCroock
snaplesec asked this question in Q&A
Discussion options

You must be logged in to vote

executeMutation will return a stream which I don't think is what you're looking for, alternatively if you want to use promisified stuff you can use client.mutate

const res = await (client.mutation(ADDATTACH, { attach: atts }).toPromise())

EDIT: client.mutate --> client.mutation

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@JoviDeCroock
Comment options

@snaplesec
Comment options

@snaplesec
Comment options

@JoviDeCroock
Comment options

@snaplesec
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants