pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
299 stars 61 forks source link

Expose ID for blocks #113

Open Nessworthy opened 3 years ago

Nessworthy commented 3 years ago

Seems like all blocks have a UUID.

X/Y is I'm trying to hook this up to a gatsby install, but gatsby is failing to collect the nodes because there's no unique identifier (full error is "Interfaces with the nodeInterface extension must have a field id of type ID!. Check the type definition of WpBlockEditorContentNode.")

With no actual identifier to map blocks to, I feel like I've hit a dead end.

julrich commented 3 years ago

Hitting this, too! Any idea what's breaking this? Would've expected (maybe wrongly so?) this to work with Gatsby out-of-the-box? :thinking:

julrich commented 3 years ago

Seems like this issue should have addressed it? Not sure why I'm hitting this nonetheless... https://github.com/pristas-peter/wp-graphql-gutenberg/issues/89