Created graphql geozone_type

This commit is contained in:
Alberto Miedes Garcés
2016-09-30 11:28:16 +02:00
parent 657f57f9a2
commit 31f0b9b98d

View File

@@ -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