My attempts to integrate Gridsome with NetlifyCMS using Gridsome's documentation have been unsuccessful.
Below is a snippet of the Netlify config.yml setup:
collections:
- name: "posts"
label: "Posts"
folder: "posts"
create: true
slug: "{{slug}}"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Excerpt", name: "excerpt", widget: "string"}
- {label: "Publish Date", name: "date", widget: "date"}
- {label: "Body", name: "body", widget: "markdown"}
Upon inspecting the Graphql Playground and accessing the Docs tab, I noticed that the "allPost" query exists but the "title" field under post appears to be unrecognized while "belongsTo" strangely is. Attempting to query for "title" results in an error stating "Cannot query field 'title' on type 'Post'".
I am puzzled by the appearance of "belongsTo" and unsure how to address this issue. Could this possibly be a bug related to Netlify or a problem within Gridsome?