druxt.js icon indicating copy to clipboard operation
druxt.js copied to clipboard

Add `getRelated` method.

Open Decipher opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. There's no simple way to load in all related entities in Druxt.

Describe the solution you'd like

  • [x] Add a getRelated method to the DruxtClient
  • [ ] Add a getRelated method to the DruxtStore

Use the JSON:API related endpoints.

Describe alternatives you've considered N/A

Additional context https://demo-api.druxtjs.org/en/jsonapi/node/article/e4ced3c1-e14b-48f1-8c0a-c909e808de68/field_tags

Decipher avatar May 30 '21 00:05 Decipher

Above commits are incorrectly tagged :|

Decipher avatar Aug 14 '21 23:08 Decipher

@d34dman Have you implemented a similar method with your drupal-js-sdk?

Decipher avatar Aug 14 '21 23:08 Decipher

@Decipher not yet. And to be honest, didn't even plan this far yet.

Atm, am working on an architectural overhaul after some user feedback and difficulty in using the project. (Especially around state and session management).

d34dman avatar Aug 17 '21 13:08 d34dman

No stress, just wanted to make sure not to duplicate effort.

Decipher avatar Aug 18 '21 00:08 Decipher