-
-
Save simistern/053ca741c0eb4c19d3a4d5b36e02c20d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ketting = new Ketting('https://api.example.org/'); | |
const createArticle = await ketting.follow('articleCollection').follow('new'); // chained follow | |
const newArticle = await createArticle.post({ title: 'Hello world' }); | |
const author = await newArticle.follow('author'); | |
// Output author information | |
console.log(await author.get()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment