You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query ($id: ID!) {
product(id: $id) {
path # path to the default template
path(to:"reviews") # path to the reviews template
}
}
but this of course does not work. I didn't yet know the concept of aliases in GraphQL, so it may be instructive to either revise the example to include an alias, or do not include path twice.
path
reviewPath: path(to:"reviews")
Kind regards
The text was updated successfully, but these errors were encountered:
Thank you for this amazing project!
While learning, I tried to implement a secondary view (template) for a particular node type. Following the example in
templates.md
(https://github.com/gridsome/gridsome.org/blob/master/docs/templates.md / https://gridsome.org/docs/templates/) , I queried both paths:but this of course does not work. I didn't yet know the concept of aliases in GraphQL, so it may be instructive to either revise the example to include an alias, or do not include
path
twice.Kind regards
The text was updated successfully, but these errors were encountered: