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
Having issues for pulling separate indexes for different pages.
Current:
/my-site/page1
query SearchbarIndexQuery {
localSearchPage1 {
index
store
}
/my-site/another-page
query SearchbarIndexQuery {
localSearchAnotherPage {
index
store
}
Preferred:
query($indexName: String) {
localSearchPages(filter: {indexName: {eq: $indexName}}) {
index
store
}
Because gatsby tries to validate pageQueries on compile time the current version requires a dynamic string to be passed in, unless theres a better approach?
The text was updated successfully, but these errors were encountered:
Having issues for pulling separate indexes for different pages.
Current:
/my-site/page1
/my-site/another-page
Preferred:
Because gatsby tries to validate pageQueries on compile time the current version requires a dynamic string to be passed in, unless theres a better approach?
The text was updated successfully, but these errors were encountered: