Replies: 2 comments
-
Hi @ikey2244, you can use this.$apollo.* api for this purpose. It's not well documented, but you can see some TOC here: https://vue-apollo.netlify.com/api/dollar-apollo.html. this.$apollo.query({
query: gql`query foo { foo }`,
variables: {...}
}) I highly recommend to look at types of this.$apollo if you use typescript. Hope this helps. If something unclear, please let me know and I will explain it to you. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@georgyfarniev Thank you! I'll see what I can do. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to make some search functionally in my app. On the backend I am hitting an API using Apollo's data sources package. I would like to be able to run this query after firing off a form submission.
Doesn't work
Does work but feels super hacky
Beta Was this translation helpful? Give feedback.
All reactions