Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolvers #6

Closed
Craig5117 opened this issue Mar 24, 2021 · 1 comment
Closed

Resolvers #6

Craig5117 opened this issue Mar 24, 2021 · 1 comment
Assignees

Comments

@Craig5117
Copy link
Owner

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.

@Craig5117
Copy link
Owner Author

Set up and running. Good work Adam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants