I have this piece of GraphQL query:
query AllProductTypes ($cursor: String) {
productTypes(first: 250, after: $cursor) {
edges {
node
cursor
}
pageInfo {
hasNextPage
}
}
}
Error: Field ‘productTypes’ doesn’t accept argument ‘after’
is it possible that the after is not available for this specific query? Anyone has any workaround?
The ironic thing is, if we remove after the query returns everything fine with cursors as well. hasNextPage always returns false no matter what is the return limit. So if I put a lesser limit it will return false as well.
Not sure what’s going on here. Any help would be appreciated. Thanks!