GrappleGQL / gatsby-source-wagtail

Plugin for sourcing Gatsby data from Wagtail CMS
17 stars 12 forks source link

Fix preview break when using StreamFieldInterface implementation fragment #22

Closed tbrlpld closed 4 years ago

tbrlpld commented 4 years ago

As described in #21, the preview used to break when a StreamFieldInterface implementation fragment (like ... on ImageChooserBlock) is used in the page query.

The developer console would show an Apollo error message that is suggesting a solution. The possible solution is also mentioned #21 and comes down to the use if the IntrospectionFragmentMatcher from 'apollo-cache-inmemory'.

StreamFieldInterface implementation fragment (like ... on ImageChooserBlock) can now be used without issue.

Also, gatsby-source-filesystem is added to the dependencies since it is required in this plugin's gatsby-node.js.

Fixes #21

NathHorrigan commented 4 years ago

Looks awesome! Thanks @tbrlpld !