Skip to content

Instantly share code, notes, and snippets.

@chandu0101
Last active November 2, 2015 22:13
Show Gist options
  • Save chandu0101/d327df96c2b0913ccad4 to your computer and use it in GitHub Desktop.
Save chandu0101/d327df96c2b0913ccad4 to your computer and use it in GitHub Desktop.
[
{
"name": "User",
"kind": "OBJECT",
"interfaces": [
"Node"
],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
}
]
},
{
"name": "Seed",
"kind": "OBJECT",
"interfaces": [
"Node"
],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
},
{
"name": "name",
"type": "String",
"nonNull": true
},
{
"name": "category",
"type": "SeedCategory",
"reverseName": "seeds",
"nonNull": true
},
{
"name": "duration",
"type": "Int",
"nonNull": true
},
{
"name": "info",
"type": "String",
"nonNull": true
},
{
"name": "image",
"type": "Image",
"nonNull": true
},
{
"name": "geolocations",
"type": "GeoJsonFeatureCollection",
"nonNull": true
}
]
},
{
"name": "Cow",
"kind": "OBJECT",
"interfaces": [
"Node"
],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
},
{
"name": "name",
"type": "String",
"nonNull": true
},
{
"name": "milk",
"type": "Float",
"nonNull": true
},
{
"name": "info",
"type": "String",
"nonNull": true
},
{
"name": "image",
"type": "Image",
"nonNull": true
},
{
"name": "geolocations",
"type": "GeoJsonFeatureCollection",
"nonNull": true
}
]
},
{
"name": "Farmer",
"kind": "OBJECT",
"interfaces": [
"Node"
],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
},
{
"name": "geolocation",
"type": "GeoJsonFeature",
"nonNull": true
},
{
"name": "crops",
"type": "Connection",
"ofType": "FarmerCrops",
"reverseName": "farmer",
"nonNull": true
},
{
"name": "info",
"type": "String",
"nonNull": true
},
{
"name": "image",
"type": "Image",
"nonNull": true
}
]
},
{
"name": "SeedCategory",
"kind": "OBJECT",
"interfaces": ["Node"],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
},
{
"name": "name",
"type": "String",
"nonNull": true
},
{
"name": "seeds",
"type": "Connection",
"ofType": "Seed",
"reverseName": "category"
},
{
"name": "farmers",
"type": "Connection",
"ofType": "FarmerCrops",
"reverseName": "seed"
}
]
},
{
"name": "FarmerCrops",
"kind": "OBJECT",
"interfaces": ["Node"],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
},
{
"name": "farmer",
"type": "Farmer",
"reverseName": "crops"
},
{
"name": "seed",
"type": "SeedCategory",
"reverseName": "farmers"
}
]
},
{
"name": "GeoJsonFeatureCollection",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "type",
"type": "String",
"nonNull": true
},
{
"name": "features",
"type": "List",
"ofType": "GeoJsonFeature",
"nonNull": true
}
]
},
{
"name": "GeoJsonFeature",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "type",
"type": "String",
"nonNull": true
},
{
"name": "geometry",
"type": "Geometry",
"nonNull": true
},
{
"name": "properties",
"type": "GeoProperties"
}
]
},
{
"name": "Geometry",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "type",
"type": "String",
"nonNull": true
},
{
"name": "coordinates",
"type": "List",
"ofType": "Float",
"nonNull": true
}
]
},
{
"name": "GeoProperties",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "contact",
"type": "Contact",
"nonNull": true
}
]
},
{
"name": "Contact",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "firstName",
"type": "String",
"nonNull": true
},
{
"name": "lastName",
"type": "String",
"nonNull": true
},
{
"name": "phoneNumbers",
"type": "List",
"ofType": "String",
"nonNull": true
},
{
"name": "address",
"type": "String",
"nonNull": true
}
]
},
{
"name": "Image",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "low",
"type": "String",
"nonNull": true
},
{
"name": "medium",
"type": "String",
"nonNull": true
},
{
"name": "high",
"type": "Int",
"nonNull": true
}
]
},
{
"name": "Todo",
"kind": "OBJECT",
"interfaces": [
"Node"
],
"fields": [
{
"name": "id",
"type": "ID",
"nonNull": true
},
{
"name": "text",
"type": "String"
},
{
"name": "complete",
"type": "Boolean"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment