query GetPosts {
posts {
nodes {
id
title
slug
primaryCategory {
id
name
}
}
}
}
[x] Ensure running the query returns the expected primaryCategory data and doesn't error. Field should be null if no primary category was selected.
Currently the only hierarchical taxonomy we use is categories. If we ever add a hierarchical taxonomy in the future, a primary term field for that taxonomy will be added to post types using the taxonomy.
Closes #103
programNotIn
filter arg registration to tw-graphql pluginTo Review
npm run local
(ornpm run refresh
if you want a fresh database.)primaryCategory
data and doesn't error. Field should benull
if no primary category was selected.