{"id":14976103,"url":"https://github.com/sharkcore/extract-schema-coordinates","last_synced_at":"2025-10-27T18:30:20.975Z","repository":{"id":42863325,"uuid":"258073904","full_name":"sharkcore/extract-schema-coordinates","owner":"sharkcore","description":"Extract field coordinates from GraphQL documents","archived":false,"fork":false,"pushed_at":"2023-11-20T15:13:20.000Z","size":204,"stargazers_count":12,"open_issues_count":14,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-19T19:53:22.629Z","etag":null,"topics":["graphql","graphql-js","graphql-schema","query"],"latest_commit_sha":null,"homepage":"","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/sharkcore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-23T02:30:25.000Z","updated_at":"2024-04-11T05:30:28.000Z","dependencies_parsed_at":"2024-09-27T21:50:33.288Z","dependency_job_id":null,"html_url":"https://github.com/sharkcore/extract-schema-coordinates","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":"0.31707317073170727","last_synced_commit":"4499ed9cf45dc3853af362824fd3c1b289526534"},"previous_names":["sharkcore/extract-field-paths","sharkcore/extract-field-coordinates","sharkcore/graphql-document-tools"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/sharkcore/extract-schema-coordinates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkcore%2Fextract-schema-coordinates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkcore%2Fextract-schema-coordinates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkcore%2Fextract-schema-coordinates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkcore%2Fextract-schema-coordinates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharkcore","download_url":"https://codeload.github.com/sharkcore/extract-schema-coordinates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkcore%2Fextract-schema-coordinates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281319624,"owners_count":26481035,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["graphql","graphql-js","graphql-schema","query"],"created_at":"2024-09-24T13:53:18.485Z","updated_at":"2025-10-27T18:30:20.687Z","avatar_url":"https://github.com/sharkcore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extract-schema-coordinates\n\nExtract a list of \"schema coordinates\" contained in a GraphQL document\n\n## Install\n\n```bash\n$ yarn add extract-schema-coordinates\n```\n\n## Example\n\ne.g. for the following query:\n\n```graphql\nquery GET_BUSINESS($BizId: String) {\n    business(id: $BizId) {\n        name\n        location {\n            city\n        }\n    }\n}\n```\n\nWe would return the following set of schema coordinates:\n\n```json\n[\"Query.business\", \"Business.name\", \"Business.location\", \"Location.city\"]\n```\n\n## API\n\n```\nextractSchemaCoordinates(\n    /**\n     * The text of the document to analyse, in raw string format\n     */\n    documentText: string,\n    /**\n     * The text of your schema, in string SDL format (e.g. as created by printSchema)\n     * @see https://graphql.org/graphql-js/utilities/#printschema\n     */\n    schemaText: string,\n): Set\u003cstring\u003e\n```\n\n### Usage:\n\n```js\nimport extractSchemaCoordinates from 'extract-schema-coordinates';\nconst coordinates = extractSchemaCoordinates(documentString, schemaText);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkcore%2Fextract-schema-coordinates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharkcore%2Fextract-schema-coordinates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkcore%2Fextract-schema-coordinates/lists"}