Using Gatsby.JS with GraphQL. I can see all nodes for seo, but edges are not showing, so I can't grab isPrimary.
My query looks like this:
query getPost {
wpPost(databaseId: {eq: 12}) {
categories {
edges {
isPrimary
}
nodes {
link
name
}
}
content
author {
node {
email
name
uri
}
}
seo {
title
}
}
}
This gives me an error "Cannot query field \"edges\" on type \"WpPostToCategoryConnection\". Did you mean \"nodes\"?". If I remove edges it works. Seo also gives corrrect values, but not edges.
Using Gatsby.JS with GraphQL. I can see all nodes for seo, but edges are not showing, so I can't grab isPrimary. My query looks like this:
This gives me an error "Cannot query field \"edges\" on type \"WpPostToCategoryConnection\". Did you mean \"nodes\"?". If I remove edges it works. Seo also gives corrrect values, but not edges.