Closed yoannisj closed 3 days ago
Thanks for this @yoannisj! Haven't been able to spend much time on this plugin for the Craft 5 release as we don't regularly use it at the office.
The PR looks good, I'll merge it and tag a new release - if you'd like you can then switch back to this version and test if it works the same in your project?
5.0.0-beta.3 is out with this fix!
This PR addresses some issues with the GraphQL API.
When used in a GraphQL query, only 1 array argument is given to those methods, which was thowing an error in the Craft v5 version because the methods require 2 arguments (date range field
handle
andentryTypeHandle
). This PR fixes this by making the 2nd argument optional, and extracts it from the 1st array argument instead. Fixes #38isOngoing
field on the GraphQL data type returned for Date Range fields.Note: We are using our fork with the fixes above on one of our projects, and so far it is working well :).