GraphQL schema object types for GeoJSON (v1.0.0). Provides GraphQL types for representing GeoJSON geometry objects (Point, LineString, Polygon, etc.) within a GraphQL schema. It integrates seamlessly with the reference GraphQL.js implementation. The library is mature and stable, but note that it is deprecated in favor of graphql-geojson-scalar-types for simpler scalar-based approach. Release cadence is low; no updates since 2017.
npm install graphql-geojsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a GraphQL schema with a GeoJSON Point field using graphql-geojson.
Replace with graphql-geojson-scalar-types or switch to custom scalar types.
Consider using graphql-geojson-scalar-types which as a single custom scalar.
Manually validate GeoJSON inputs before storing or processing.
Run npm install graphql-geojson (and graphql as peer dep) from the project root.
Use a named import: import { PointObject } from 'graphql-geojson'