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
Hey,
I'm trying to work with Map carbon field, but when use wpgraphql to retrieve the value it returns an error, because it expects string, but the returned value from map field is array with 5 items (value, lat, lng, zoom, address).
I could use graphql_resolve_field filter to return $result['value'] as a string. In my case (where the field name is 'location') I can not choose nested nodes (value, lat, lng, zoom or address), I have just "location".
The text was updated successfully, but these errors were encountered:
Hey,
I'm trying to work with Map carbon field, but when use wpgraphql to retrieve the value it returns an error, because it expects string, but the returned value from map field is array with 5 items (value, lat, lng, zoom, address).
Field::make('map', 'location', __('Location', 'crb'));
I could use graphql_resolve_field filter to return $result['value'] as a string. In my case (where the field name is 'location') I can not choose nested nodes (value, lat, lng, zoom or address), I have just "location".
The text was updated successfully, but these errors were encountered: