{"id":15192313,"url":"https://github.com/mohameddev19/gql-extractor-vscode-extension","last_synced_at":"2026-01-26T18:02:31.288Z","repository":{"id":210346782,"uuid":"726347026","full_name":"mohameddev19/gql-extractor-vscode-extension","owner":"mohameddev19","description":"VS Code extension to extract GraphQL queries from files and generate client-side queries and TypeScript types code for them","archived":false,"fork":false,"pushed_at":"2025-06-29T12:18:13.000Z","size":7831,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T13:28:16.462Z","etag":null,"topics":["apollo","apollo-client","apollo-graphql","graphql","graphql-api","graphql-client","typescript","typescript-types","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=libanna.gql-extractor","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/mohameddev19.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2023-12-02T05:39:38.000Z","updated_at":"2025-06-29T12:18:16.000Z","dependencies_parsed_at":"2024-04-18T04:28:16.334Z","dependency_job_id":"f0e5b7a1-f83e-4b12-83db-75d316940385","html_url":"https://github.com/mohameddev19/gql-extractor-vscode-extension","commit_stats":null,"previous_names":["mohameddev19/gql-extractor-vscode-extension"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mohameddev19/gql-extractor-vscode-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohameddev19%2Fgql-extractor-vscode-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohameddev19%2Fgql-extractor-vscode-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohameddev19%2Fgql-extractor-vscode-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohameddev19%2Fgql-extractor-vscode-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohameddev19","download_url":"https://codeload.github.com/mohameddev19/gql-extractor-vscode-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohameddev19%2Fgql-extractor-vscode-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28784093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apollo","apollo-client","apollo-graphql","graphql","graphql-api","graphql-client","typescript","typescript-types","vscode","vscode-extension"],"created_at":"2024-09-27T21:21:31.495Z","updated_at":"2026-01-26T18:02:31.283Z","avatar_url":"https://github.com/mohameddev19.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Extractor\n\nVS Code extension to extract GraphQL queries from files and generate client-side queries and TypeScript types code for them..\n\n## Features\n\n- Generate client queries from gql scheam  \n- Generate typescript types from gql scheam  \n- Generate apis function from gql scheam  \n- User can create `gql-extract.config.json` file to using some futures\n- Handle recursive types with configurable recursion depth\n\n## Usage\n\nOpen your `workspace folder` and follow the steps:\n\n- First step: Type `CTRL+Shift+P`.\n- Second step: Type `gql extract` and press `Enter`.\n- Third step: Wait while your queries files and types files to be generated.\n\nThe extension wil create two folders:\n\n1. `queries folder`: for all client queries files.\n2. `types folder`: for types files.\n\n### config file\n\nYou can create `gql-extract.config.json` file in the root of your project to:\n\n- choose where the types must be saved.\n- choose where the queries must be saved.\n- choose where the apis function must be saved.\n- set the apis option `\"apollo\"` to create apis functions.\n- set apollo fetchPolicy `\"fetchPolicy\"`, the default value is \"no-cache\".\n- set recursion depth with `\"recursionDepth\"` (default is 5)\n- set type-specific recursion depths with `\"typeRecursionMap\"` for handling specific recursive types\n\nI'll add other apis option soon, inshallah.\n\nExample for config file:\n\n```json\n{\n  \"queriesFolderName\": \"FOLDER_NAME\",\n  \"typesFolderName\": \"FOLDER_NAME\",\n  \"apisFolderName\": \"FOLDER_NAME if you set the apis option\",\n  \"apis\": \"apollo\",\n  \"fetchPolicy\": \"no-cache\",\n  \"recursionDepth\": 3,\n  \"typeRecursionMap\": {\n    \"TemplateObject\": 2,\n    \"NestedType\": 4\n  }\n}\n```\n\nIn this example, most recursive types will be traversed to a depth of 3, but TemplateObject will be limited to 2 levels and NestedType will go to 4 levels deep.\n\n**Enjoy!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohameddev19%2Fgql-extractor-vscode-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohameddev19%2Fgql-extractor-vscode-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohameddev19%2Fgql-extractor-vscode-extension/lists"}