You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a contact form on my Website Front-End with name, email, message, submitted and type 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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