frankcollins3 / Next-Water-App

Happy, Healthy Water Cycling App that tracks user/human fluid intake.
https://next-water-app.vercel.app
1 stars 0 forks source link

graphQL ? in production with Vercel? [1:16pm] #117

Closed frankcollins3 closed 11 months ago

frankcollins3 commented 11 months ago

attempting to do: // sidenote. thrilled to have learned GraphQL. kind of confused how/why to integrate it with vercel?

error: no error yet just looking at this example CREATE TABLE route Screen Shot 2023-08-01 at 1 02 09 AM

to avoid sounding lazy: the wondering is if someone knew they were deploying directly to vercel from the start why not just do the INSERT INTO commands and skip making graphql/resolvers.ts that mutate local postgres DB data

recursion of being decently graphQL proficient is worth it but if the goal was to iterate fullstack UI concepts at fastest speed skip working local?

proposed approach: perhaps put these in pages/api and have resolvers perform queries (which to vercel are INSERT INTO commands)

frankcollins3 commented 11 months ago

just have to rewrite resolvers to be regular going to store the original resolvers in a newly named file called localResolvers.ts