Skip to content

Commit

Permalink
chore(#71): add example
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Oct 10, 2021
1 parent 4f73ae2 commit 992590b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/druxt/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ class DruxtClient {
/**
* Get the related resources from a specified JSON:API resource.
*
* @example @lang js
* const related = this.$druxt.getRelated('node--page', id, 'uid')
*
* @param {string} type - The JSON:API Resource type.
* @param {string} id - The Drupal resource UUID.
* @param {string} related - The relationship name.
Expand Down

0 comments on commit 992590b

Please sign in to comment.