drupal-graphql / graphql

GraphQL integration for Drupal 9/10
286 stars 202 forks source link

How to access additional JavaScript library URLs #1355

Open cweiske opened 1 year ago

cweiske commented 1 year ago

When using graphql 3.x, the rendered HTML content of a page can be fetched with entityRendered.

Some drupal modules register additional JavaScript libraries for certain pages or content elements.

When using Drupal as headless CMS, those libraries need to be included in the final HTML page in addition to the rendered HTML content.

How can I fetch those libraries? entityMetatags does not contain them.