I followed this example when I was implementing "createPagePerItem" functionality in my gatsby application. I found some inconsistencies here, so I'm updating this example.
I removed parameters of $previousPageId and $nextPageId from graphql query. We don't need them here.
I renamed id to pageId, previousPageItem to previousItem and nextPageItem to nextItem.
I followed this example when I was implementing "createPagePerItem" functionality in my gatsby application. I found some inconsistencies here, so I'm updating this example.
I removed parameters of $previousPageId and $nextPageId from graphql query. We don't need them here.
I renamed id to pageId, previousPageItem to previousItem and nextPageItem to nextItem.
Fix the path to display previous and next titles.