An online community of conversation, built with the MERN stack, that will allow those with personal, financial or career-related problems to talk them through with others, in either a private or a public channel.
MIT License
0
stars
3
forks
source link
Added typeDefs and added the additional "conversationTitle" field to the Conversation model #20
Added in conversationTitle field to the conversation schema (note that nothing else in the schema was changed, but used "Format Selection" in VSCode so it removed the extra spaces in the schema).
Added typeDef:
Based on Module 21 MERN - Activity 24, added in "type Auth" as it looks like we may need this when adding the JWT authentication. Can be removed if deemed not required later on.
"Availability" is not added to the "addUser" type Mutation as unsure if this will be one of the columns on the sign up page.
Line 10 uses "conversations: [Conversation]!" instead of "conversation: Conversation" as the conversation will end some day and there'll be a new conversation stored with the user and that will be an array instead of an object.
Changes made in this PR: