GeoJSON support for Django GraphQL
Project description
GeoJSON support for Django GraphQL
Dependencies
Python ≥ 3.4
Django ≥ 1.11
Installation
Install last stable version from Pypi.
pip install django-graphql-geojson --process-dependency-links
GeoJSONType
from graphql_geojson.types import GeoJSONType
class PlaceType(GeoJSONType):
class Meta:
model = models.Place
geojson_field = 'location'
Here we go!
query {
places {
id
type
geometry {
type
coordinates
}
properties {
name
}
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-graphql-geojson-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e52e7e3d7fc0839b4e170521b5e2611617f5c5809d7798d9148aeb227ea74b3 |
|
MD5 | 2c9c320196a0b4f11dcae9145c27464c |
|
BLAKE2b-256 | 85b4fe7d98763eea47dddf0959d011af0c06cef1b6706bda5bb1ac1bc4c9d610 |
Close
Hashes for django_graphql_geojson-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1aafb407db158671fb17211969ff17e1edaf7d68f6aee875947f07c03c0235c |
|
MD5 | 51448288b58b5985afaf449d9a653c48 |
|
BLAKE2b-256 | 59ee9dcd5413db15bb3955c9638d96a737fec9a01996a2b1b052b409d489d566 |