Replies: 1 comment
-
I think it’s a mutation, similar to how creating a PDF on a button click is a mutation. |
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
-
Heyo,
I'm trying to figure out what's best for implementing the following scenario:
We have a form where the user fills some data. We want to analyze that data with the AI, thus we have a button that sends it to a server and gets back a JSON report.
The report is not persisted in our database, or anywhere for that matter. It's just sent to the user and displayed.
Do you think this should be implemented using a query or a mutation?
Asking because I feel like this is the perfect case for a mutation, but at the same time because the data is not persisted/mutated, feels like we're just fetching something so a query might do as well. How would you implement this?
Beta Was this translation helpful? Give feedback.
All reactions