Save a Document Programmatically through API, Not Admin. #4482
Unanswered
jackkingham-au
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a basic definition for a collection;
I have a contact form on my Website Front-End with
name
,email
,message
,submitted
andtype
fields I'd like to pass to the Back-End.Ideally, I'd like to call an API route to create a document under the
contacts
collection, with the fields added in as well.Unfortunately, I'm a bit lost, as to how to just SAVE data to my Back-End with Tina. I understand I can use
client.queries
to fetch basic data I need. Is there a simple helper function I can use to save data?I am not experienced with GraphQL, so I'm hoping for a simple solution, rather than defining custom GraphQL.
For my hosting I am using Tina Cloud.
Thank you for any help you can provide!
Beta Was this translation helpful? Give feedback.
All reactions