mattrothenberg / statamic-mapbox-address

9 stars 4 forks source link

feat: Basic GraphQL support (#4) #5

Closed Lenitr closed 3 years ago

Lenitr commented 3 years ago

Very basic implementation of GraphQL support for the Address fieldtype.

Without these changes, GraphQL throws an Exception because it tries casting the Address field to String. I've simply made it convert to array instead of string, dumping all the available data from the Address field in an array.