Skip to content

Instantly share code, notes, and snippets.

@freiksenet
Forked from chandu0101/NFSchema.json
Created October 29, 2015 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freiksenet/7447164b8998b5749751 to your computer and use it in GitHub Desktop.
Save freiksenet/7447164b8998b5749751 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": "SeedCategory",
"reverseName": "farmers",
"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": "Farmer",
"reverseName": "crops"
}
]
},
{
"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": "Address",
"nonNull": true
}
]
},
{
"name": "Address",
"kind": "OBJECT",
"interfaces": [],
"fields": [
{
"name": "city",
"type": "String",
"nonNull": true
},
{
"name": "district",
"type": "String",
"nonNull": true
},
{
"name": "state",
"type": "String",
"nonNull": true
},
{
"name": "zip",
"type": "String",
"nonNull": true
},
{
"name": "street",
"type": "String",
"nonNull": true
},
{
"name": "country",
"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
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment