How can i store the output from a function i am running
Hey guys im running LLama using relicate and everything is working and when i console log output i get the result back from the API using actions from convex.
I want to now store this data but i cant firgure out how i can store the value in a new table.
Here is my function:
All the mutations and actions are working i just need to store the action result into a table
2 Replies
how about: instead of
return output
pass the output to a mutation
and that mutation will write to whatever table you'd like
in addition, if your web app would update with this llama 2 result (it's bound on useQuery
), it should just automatically update and show the result after this mutation runsThank you so much i couldnt figure it out for the longest time @jamwt 🫂