I recently had my repo migrated over to a new cluster so that I can use GraphQL. The content types are appearing, but there seems to be an issue with slice types.
query CaseStudy($slug: String!) {
caseStudy: allCase_studys(uid: $slug) {
edges {
node {
_meta {
uid
}
# ... truncated
body {
__typename
... on Case_studyBodySubtitleslicetype {
type
# primary and fields are not available
}
... on Case_studyBodyFulltextslicetype {
type
# primary and fields are not available
}
# ... truncated
}
}
}
}
}
Welcome to the Prismic community, and thanks for posting your question here
I'm not sure what's causing the problem here, so I submitted an issue to our dev team. I'll let you know what I hear back. In the meantime, let me know if you have any other questions.
I just heard back from our dev team. They looked into it, and figured out that capital letters in your fields IDs can cause errors with our GraphQL API. Can you try lowercasing your API IDs and see if that makes a difference?
The easiest way is with the import/export feature, which is available starting on the Medium Plan. Simply download an export of your repo, change the API IDs in the custom types, change the corresponding API IDs in the exported files, and then re-upload them. Here's more info on making such a change:
Let me know if you have any other questions!
Best,
Sam
samlittlefair
(Sam Littlefair)
closed , flag & select 'Something Else' to reopen.
13