drupal-graphql / graphql

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

V4 reference to add entity layout builder #1327

Open Boby opened 1 year ago

Boby commented 1 year ago

Hi,

I am trying to setup a schema to get layout builder data, is there any reference i can look into? setting up schema should I use

Interface entityInterface or nodeInterface?

ayalon commented 1 year ago

Checkout our module https://www.drupal.org/project/graphql_core_schema You should be able to build such a schema with a few clicks using our UI to expose the related fields. But keep in mind: The most important part of the Layout Builder data is stored serialized in the database, which is a huge design flaw.