- Issue created by @nilubol
- Merge request !86Enable graphql_compose support for the ui_icon field type. β (Open) created by nilubol
- πΊπΈUnited States nilubol
Wasn't sure if this belonged in the GraphQL Compose module or UI Icons, but it felt relevant here. Just a quick implementation to get the icon reference with GraphQL (per these docs).
After enabling, you should be able to add your icon field to your schema (admin/config/graphql_compose):
And find the icon field in GraphQL explorer/voyager (admin/config/graphql/servers/manage/graphql_compose_server/explorer):
- π«π·France mogtofu33
Thanks for the work.
I think it should be on GraphQL Compose as we implement core integration only in our sub modules, exception of UI Patterns but it will move too. And looking at GraphQL Compose they already implement directly these plugins for contrib.
@pdureau wdyt? - π«π·France pdureau Paris
Hello April,
Thanks for reaching out.
If we are talking about the Icon field type provided by ui_icons_field I agree with Jean (mogtofu33): the GraphQL Compose integration will be better found in graphql_compose/src/Plugin/GraphQLCompose/FieldType
Like OfficeHoursItem is integrating h office_hours β
I am not familiar with GraphQL Compose but maybe a better solution will be to integrate directly with the Core Icon API, at the plugin manager level, like what graphql_compose_layouts is doing for Layout plugins.
What do you think about that?