Fixes #718, which will be useful both for the app I'm working on and for the official app.
Change Summary:
Add follow scope to allow modifying follows for the current user
No current scope covered this and having a "modify user" scope felt maybe too general for just wanting to follow/unfollow, but I'm open to suggestions, lots of targeted scopes is not always the answer either
Add follow(Create|Update|Remove) mutations that work similar to the existing buttons on the site
Improved error handling for the resolver and lookup code I touched
Tested locally and attempted to write some tests
My first time writing Elixr so feedback would be very welcome. I'm not confident I did the right things to add support for the new scope specifically, I just grep'd for places the existing scope were referenced and it seems to work.
Fixes #718, which will be useful both for the app I'm working on and for the official app.
Change Summary:
follow
scope to allow modifying follows for the current userfollow(Create|Update|Remove)
mutations that work similar to the existing buttons on the siteTested locally and attempted to write some tests
My first time writing Elixr so feedback would be very welcome. I'm not confident I did the right things to add support for the new scope specifically, I just grep'd for places the existing scope were referenced and it seems to work.