yezyilomo / django-restql

Turn your API made with Django REST Framework(DRF) into a GraphQL like API.
https://yezyilomo.github.io/django-restql
MIT License
620 stars 43 forks source link

query not working on geojson #316

Open jmpmcmanus opened 7 months ago

jmpmcmanus commented 7 months ago

Hi = I have not able to query geojson data. Below is an example of geojson data: geojsonExample

When I run the query: http://localhost:8000/drf/api/pfas_in_tapwater_usgs/?query={properties{pfos,pfoa}}&format=json

it returns the following message: ["properties field is not found"]

I tested it on regular json data and it worked. Below is an example of regular json data I queried: jsonExample

I ran: http://localhost:8000/drf/api/ahhs_dust_data/?query={pfos_concentration,pfoa_concentration}&format=json

and it returned data. It was able to access the variables under results, but could not access the variables under features in the geojson case?

Thanks! Jim