{"id":13554168,"url":"https://github.com/ghengeveld/graphql-geojson","last_synced_at":"2025-04-03T06:31:13.440Z","repository":{"id":57162952,"uuid":"68732704","full_name":"ghengeveld/graphql-geojson","owner":"ghengeveld","description":"GraphQL schema object types for GeoJSON","archived":true,"fork":false,"pushed_at":"2020-05-24T11:50:59.000Z","size":4,"stargazers_count":61,"open_issues_count":6,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-12T21:29:51.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghengeveld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-20T16:43:48.000Z","updated_at":"2024-08-05T06:30:50.000Z","dependencies_parsed_at":"2022-09-01T00:20:10.202Z","dependency_job_id":null,"html_url":"https://github.com/ghengeveld/graphql-geojson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghengeveld%2Fgraphql-geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghengeveld%2Fgraphql-geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghengeveld%2Fgraphql-geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghengeveld%2Fgraphql-geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghengeveld","download_url":"https://codeload.github.com/ghengeveld/graphql-geojson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246947948,"owners_count":20859346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:02:41.070Z","updated_at":"2025-04-03T06:31:13.108Z","avatar_url":"https://github.com/ghengeveld.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# graphql-geojson\n\n[![npm version][npm shield]][npm url]\n\nGraphQL schema object types for GeoJSON. Based on [GeoJSON Object Schema][geojson schema].\n\n[npm shield]: https://img.shields.io/npm/v/graphql-geojson.svg\n[npm url]: https://www.npmjs.com/package/graphql-geojson\n[geojson schema]: https://github.com/sogko/graphql-schemas/tree/master/geojson\n\n## Installation\n\n```bash\nnpm i -S graphql-geojson\n```\n\nor with Yarn:\n\n```bash\nyarn add graphql-geojson\n```\n\n## Usage\n\n```js\nimport { GraphQLObjectType, GraphQLSchema } from 'graphql'\nimport { PointObject } from 'graphql-geojson'\n\nexport default new GraphQLSchema({\n  query: new GraphQLObjectType({\n    name: 'Query',\n    fields: () =\u003e ({\n      point: {\n        type: PointObject,\n        resolve: () =\u003e ({\n          type: 'Point',\n          coordinates: [-105.01621, 39.57422],\n          crs: {\n            type: 'name',\n            properties: {\n              name: 'urn:ogc:def:crs:OGC:1.3:CRS84',\n            },\n          },\n        }),\n      },\n    }),\n  }),\n})\n```\n\nThen you can query it like this:\n\n```graphql\nquery {\n  point {\n    type\n    coordinates\n    crs {\n      type\n      properties {\n        ... on GeoJSONNamedCRSProperties {\n          name\n        }\n      }\n    }\n  }\n}\n```\n\n## Demo\n\nAn example GraphQL server implementation is available here:\nhttps://github.com/ghengeveld/graphql-geojson-demo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghengeveld%2Fgraphql-geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghengeveld%2Fgraphql-geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghengeveld%2Fgraphql-geojson/lists"}