ketting
ketting copied to clipboard
Add a 'followAndGet' method
Often, I need to use the following construct:
const username = (
await (
await this.ketting.follow('current-user')
).get()
).data.username;
I think it would be nice to have a shortcut like this:
const username = (
await this.ketting.followAndGet('current-user')
).data.username;
What do you think? :)