verbb / single-cat

Field type for CraftCMS that allows the user to select a single category from a drop-down.
MIT License
11 stars 5 forks source link

Add GraphQL support #13

Closed denisyilmaz closed 2 years ago

denisyilmaz commented 4 years ago

Currently GraphQL fails while querying for single-cat fields as it does not expect the CategoryInterface but rather a String. I included the getContentGqlType() from the native categories fields from CraftCMS 3.4.16 and its working for Queries.

denisyilmaz commented 3 years ago

any possibility to merge this?

denisyilmaz commented 2 years ago

Any chance this can be merged?

engram-design commented 2 years ago

Thanks for this! I've manually merged this in with some other major refactoring for Craft 3.