neetinzwt
(Neetin Solanki)
December 15, 2020, 9:29am
1
Hello,
I am trying to create a breadcrumb component in my Gatsby app.
This is my GraphQL query, in which the parent_article is the relationship field. The problem is that I get only the ID of the parent_article, whereas I need the whole document to get the related title and slug.
I have used "gatsby-source-prismic" to connect gatsby app and prismic.
Here's my relationship schema in prismic.
Am I missing something here?
Priyanka
(Priyanka Maheshwari)
December 15, 2020, 1:14pm
5
Hello @neetinzwt ,
Thanks for posting to us.
Please verify the following points:
Have all documents been published?
There should be json files in your schema directory in your project, which should be the same as the one in Prismic.
If so, try running gatsby clean
command and run your project again.
Let me know after trying this, If still doesn't solve the problem we can work together to solve this.
Thanks,
Priyanka
neetinzwt
(Neetin Solanki)
December 16, 2020, 7:56am
6
I fixed the issue after upgrading 'gatsby-source-prismic' pluging to version 3.3.1
Ref: https://github.com/angeloashmore/gatsby-source-prismic/issues/297
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
December 17, 2020, 7:56am
7
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.