Skip to content

Contentful

Maxwell Austensen edited this page Aug 5, 2022 · 2 revisions

We use Contentful for all but the smallest bit of text on the Org site.

Issues to watch out for:

  • If a content model has an optional field and across all the content entries using that model the field is left blank, it is removed from the schema and an error is raised if you try to access it in a GraphQL query. To fix this you need to create a new content item and fill in that optional field and just don't link it anywhere and put something like "DO NOT DELETE" in the name. The error will look something like this:
error #85901 GRAPHQL
There was an error in your GraphQL query:
Cannot query field "author" on type "ContentfulLearningArticlePage".
  • When a new piece of content is still unpublished (in draft status), it's possible to not have all required fields filled out. However, since for our demo sites we are pulling the unpublished preview content this can break things in the code where we are relying on a required field to be populated.
Clone this wiki locally