created topic.jsx, topicDetails.jsx and tied it in with PostForm.jsx
configured Apollo in App.jsx
configured vite config.js – proxy: graphQL
updated queries to include _id instead of id
configured topic.js page
created TopicDetails page - linked to topic.js to render the page for the single topic → allows for posting
created route in app.jsx for Topic/:id
updated GET POST by id - in queries
updated ADD POST in queries and mutations
removed author.id from ADD POST in resolver.js and typedefs ((was unnecessary))
added context.user._id to resolver ****
PLEASE NOTE: until loginpage / auth is complete, create & save post in resolvers has:
context being hardcoded to "Henry" for the sake of the application functioning...
once we have login page and auth configured, we can the author id back to : authorId: context.user?._id
created topic.jsx, topicDetails.jsx and tied it in with PostForm.jsx
configured Apollo in App.jsx configured vite config.js – proxy: graphQL updated queries to include _id instead of id configured topic.js page created TopicDetails page - linked to topic.js to render the page for the single topic → allows for posting created route in app.jsx for Topic/:id updated GET POST by id - in queries updated ADD POST in queries and mutations removed author.id from ADD POST in resolver.js and typedefs ((was unnecessary))
added context.user._id to resolver **** PLEASE NOTE: until loginpage / auth is complete, create & save post in resolvers has: context being hardcoded to "Henry" for the sake of the application functioning... once we have login page and auth configured, we can the author id back to : authorId: context.user?._id