92green / enty

Normalized State Management
MIT License
6 stars 1 forks source link

enty-docs gatsby bug #62

Closed dxinteractive closed 6 years ago

dxinteractive commented 6 years ago

Not sure where to put this but will need to remember it if we use enty's proto gatsby docs thing in other places. Not really an enty bug per se.

So gatsby infers your schemas from the data, which works only if the data is complete at the time that it does the inferring. So playing around with a copy of enty-docs, if I were to remove all doclets that create examples, then gatsby would see there are no examples, not add the example field to the schema, and then any queries that talk about the example field would then break. Quite a problem, apparently they're working on it.

Issue: https://github.com/gatsbyjs/gatsby/issues/3344 Scheduled feature: https://github.com/gatsbyjs/gatsby/issues/4261

allanhortle commented 6 years ago

Yeah its pretty silly. The query at the bottom of the docs template constantly breaks because the docs you are querying have changed their data and now the inferred graphql types are different.

allanhortle commented 6 years ago

Closing as not really a problem with enty per say.