I'm following this tutorial on Medium to get Gatsby working with Prismic.
In the GraphiQL explorer, the two queries below both yield the same result and was wondering when I should use one over the other (i.e. edges.node.data vs nodes.data):
Query #1:
query Articles {
articles: allPrismicArticle {
edges {
node {
data {
title {
text
}
image {
url
}
paragraph {
html
}
}
}
}
}
}
Query #2:
query Articles {
articles: allPrismicArticle {
nodes {
data {
title {
text
}
image {
url
}
paragraph {
html
}
}
}
}
}