Skip to content

Instantly share code, notes, and snippets.

@simistern
Created November 20, 2020 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simistern/c243784f5d9e33b19b81b44774a357d3 to your computer and use it in GitHub Desktop.
Save simistern/c243784f5d9e33b19b81b44774a357d3 to your computer and use it in GitHub Desktop.
const authorCollection = await authorResource.follow('author-collection');
const newAuthor:Author = {
firstName: 'Ursula',
lastName: 'Le Guin',
};
const newAuthorResource = await authorCollection.post(newAuthor);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment