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
I'm not 100% sure if this is the right repository to ask this on, but I am trying to display our blog posts in a Hyrdogen storefront, and i'm building a sort and filter option. I've been able to build the filter option, as the articles connection supports the reverse flag, but it seems like in order to filter blog posts by tag name, i'm going to have to fetch all blog posts and then filter client side. This seems like a major flaw in the GQL implementation around blog posts. Whats the point of tagging blogs if i can't filter for the tags in the GQL query.
Maybe i'm missing something here, but there's gotta be a way to do this without fetching all and filtering on the client. I thought about fetching all posts just for their GID and tags, filtering by tags, and then providing an array of GIDs to fetch in the deferred data function, but this seems like a poor approach too.
The text was updated successfully, but these errors were encountered:
OK, progress; sounds like query does work, but this isn't mentioned anywhere in the documentation, but the query is "tag:{tagname}", singular tag, not plural tags like the field name.
I'm not 100% sure if this is the right repository to ask this on, but I am trying to display our blog posts in a Hyrdogen storefront, and i'm building a sort and filter option. I've been able to build the filter option, as the articles connection supports the reverse flag, but it seems like in order to filter blog posts by tag name, i'm going to have to fetch all blog posts and then filter client side. This seems like a major flaw in the GQL implementation around blog posts. Whats the point of tagging blogs if i can't filter for the tags in the GQL query.
Maybe i'm missing something here, but there's gotta be a way to do this without fetching all and filtering on the client. I thought about fetching all posts just for their GID and tags, filtering by tags, and then providing an array of GIDs to fetch in the deferred data function, but this seems like a poor approach too.
The text was updated successfully, but these errors were encountered: