diff --git a/app/graph/types/geozone_type.rb b/app/graph/types/geozone_type.rb new file mode 100644 index 000000000..fc4bb2343 --- /dev/null +++ b/app/graph/types/geozone_type.rb @@ -0,0 +1,10 @@ +GeozoneType = GraphQL::ObjectType.define do + name "Geozone" + description "A geozone entry, returns basic geozone information" + # Expose fields associated with Geozone model + field :id, types.ID, "The id of this geozone" + field :name, types.String, "The name of this geozone" + field :html_map_coordinates, types.String, "HTML map coordinates of this geozone" + field :external_code, types.String, "The external code of this geozone" + field :census_code, types.String, "The census code of this geozone" +end