{"id":18789693,"url":"https://github.com/crewdevio/importql","last_synced_at":"2025-10-14T12:09:18.460Z","repository":{"id":62421429,"uuid":"273800515","full_name":"crewdevio/importql","owner":"crewdevio","description":"easy way to import and parse graphql files 🎡","archived":false,"fork":false,"pushed_at":"2021-03-04T20:59:33.000Z","size":4,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T12:31:50.639Z","etag":null,"topics":["deno","denoland","graphql","parse-graphql-files","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crewdevio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-20T23:28:28.000Z","updated_at":"2025-08-27T13:21:34.000Z","dependencies_parsed_at":"2022-11-01T17:31:56.864Z","dependency_job_id":null,"html_url":"https://github.com/crewdevio/importql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/crewdevio/importql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crewdevio%2Fimportql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crewdevio%2Fimportql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crewdevio%2Fimportql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crewdevio%2Fimportql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crewdevio","download_url":"https://codeload.github.com/crewdevio/importql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crewdevio%2Fimportql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019414,"owners_count":26086575,"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-14T02:00:06.444Z","response_time":60,"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":["deno","denoland","graphql","parse-graphql-files","typescript"],"created_at":"2024-11-07T21:08:20.338Z","updated_at":"2025-10-14T12:09:18.443Z","avatar_url":"https://github.com/crewdevio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMPORTQL 🎡\n\neasy way to import and parse graphql files in [deno](https://deno.land/)\n\n![importql](https://i.ibb.co/k5P665d/importql.png)\n\n## install\n\ninstall using [Trex](https://deno.land/x/trex) package manager\n\n```sh\n$ trex install --map importql\n```\n\nor use url\n\n```javascript\nimport { importQL } from \"https://deno.land/x/importql/mod.ts\";\n```\n\n## use\n\n```graphql\n# query.graphql file\n\ntype User {\n  firstName: String\n  lastName: String\n}\n\ninput UserInput {\n  firstName: String\n  lastName: String\n}\n\ntype ResolveType {\n  done: Boolean\n}\n\ntype Query {\n  getUser(id: String): User\n}\n\ntype Mutation {\n  setUser(input: UserInput!): ResolveType!\n}\n```\n\n```javascript\nimport { importQL } from \"https://deno.land/x/importql/mod.ts\";\n\nconst query = importQL(\"query.graphql\"); // import the .graphql file\n\n// query is now a GraphQL syntax tree object.\n\n// {\n//   \"kind\": \"Document\",\n//   \"definitions\": [\n//     {\n//       \"kind\": \"OperationDefinition\",\n//       \"operation\": \"query\",\n//       \"name\": null,\n//       \"variableDefinitions\": null,\n//       \"directives\": [],\n//       \"selectionSet\": {\n//         \"kind\": \"SelectionSet\",\n//         \"selections\": [\n//           {\n//             \"kind\": \"Field\",\n//             \"alias\": null,\n//             \"name\": {\n//               \"kind\": \"Name\",\n//               \"value\": \"user\",\n//               ...\n```\n\n## permissions\n\n- --allow-read\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrewdevio%2Fimportql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrewdevio%2Fimportql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrewdevio%2Fimportql/lists"}