doublesecretagency / craft-viewcount

View Count plugin for Craft CMS
Other
6 stars 4 forks source link

GraphQL support #26

Open yingban opened 1 year ago

yingban commented 1 year ago

Hi!

would it be possible to have GraphQL support with usage like:

query {
  entries(orderBy: "viewCount", section: "news") {
    id
    title
  }
}
lindseydiloreto commented 1 year ago

Hi, thanks for the suggestion! Long-term, we will absolutely be adding GraphQL support along those lines.

However, there are currently no short-term plans involving GraphQL. It may be a year or more before we are able to tackle that. The View Count plugin will likely need some significant parts refactored before it will be possible to add GQL support.

If your project requires support more urgently, DM me on Discord (lindseydiloreto#3339). I may be available to be commissioned for a custom module to cover GraphQL until it's available natively. 🙂

yingban commented 1 year ago

Thanks for the feedback.

it's not urgent at all, I may try myself first as an exercise :-)