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
Here is the initial list of Mutations we are defining in typeDefs
login
addPet
addPost
addComment
addFriend
addProfileImage(imageUrl: String!): User
For login-addFriend, refer to the logic we used with Deep Thoughts. If you want to add or change anything, just let me know. I am definitely open to anything that would make us stand out from Deep Thoughts more.
The one that is going to be different is the addProfileImage. It is going to be an update mutation that will find a specific user and update their profile image. Use "addFriend" as a reference. It will accept imageUrl as a parameter (taking the place of friendId in the addFriend resolver). It will be using the _id from the context just like addFriend. In place of the addToSet code, we will want something like: { image: imageUrl} (I think). New should be true.
The text was updated successfully, but these errors were encountered:
Here is the initial list of Mutations we are defining in typeDefs
For login-addFriend, refer to the logic we used with Deep Thoughts. If you want to add or change anything, just let me know. I am definitely open to anything that would make us stand out from Deep Thoughts more.
The one that is going to be different is the addProfileImage. It is going to be an update mutation that will find a specific user and update their profile image. Use "addFriend" as a reference. It will accept imageUrl as a parameter (taking the place of friendId in the addFriend resolver). It will be using the _id from the context just like addFriend. In place of the addToSet code, we will want something like: { image: imageUrl} (I think). New should be true.
The text was updated successfully, but these errors were encountered: