AmazeeLabs / silverback-mono

Silverback Monorepo. Central hub for our open source packages and tooling.
https://silverback.netlify.app
8 stars 7 forks source link

fix(SLB-278): improve gatsby node type detection #1505

Closed pmelab closed 7 months ago

pmelab commented 7 months ago

Package(s) involved

Description of changes

Detect Gatsby Node types based on custom directives that are attached to them instead of "sourceFrom" only.

Motivation and context

If Drupal is not available, types with @entity directives are not queryable in Gatsby any more and break the schema.

Related Issue(s)

SLB-278

How has this been tested?