{"id":13847145,"url":"https://github.com/oslabs-beta/TorchQL","last_synced_at":"2025-07-12T08:31:23.572Z","repository":{"id":37193499,"uuid":"254479628","full_name":"oslabs-beta/TorchQL","owner":"oslabs-beta","description":"A tool to quickly generate GraphQL schemas and resolvers from a relational database","archived":false,"fork":false,"pushed_at":"2023-01-06T03:04:27.000Z","size":22560,"stargazers_count":171,"open_issues_count":24,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T19:08:03.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/oslabs-beta.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-04-09T21:13:37.000Z","updated_at":"2024-08-14T17:05:08.000Z","dependencies_parsed_at":"2023-02-05T04:31:44.944Z","dependency_job_id":null,"html_url":"https://github.com/oslabs-beta/TorchQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oslabs-beta/TorchQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslabs-beta%2FTorchQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslabs-beta%2FTorchQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslabs-beta%2FTorchQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslabs-beta%2FTorchQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oslabs-beta","download_url":"https://codeload.github.com/oslabs-beta/TorchQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslabs-beta%2FTorchQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264962190,"owners_count":23689754,"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-04T18:00:55.987Z","updated_at":"2025-07-12T08:31:22.692Z","avatar_url":"https://github.com/oslabs-beta.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"400\" src=\"./assets/torchql-head.png?raw=true\"\u003e\n\u003c/p\u003e\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/team-reactype/ReacType/pulls)\n![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)\n\n#\n\nA developer tool to generate a GraphQL API from a known relational database.\n\n#\n\n## What Is TorchQL?\n\n**TorchQL** is an open-source tool to assist developers in the migration from REST APIs to GraphQL.\nIt facilitates the task of exposing a GraphQL API over a relational database. In other words, **you\ncan use it to implement GraphQL in your application!** Just visit our website\n[here](https://www.torchql.com/).\n\nOur developer tool introspects an existing PostgreSQL or MySQL database and generates and returns\nGraphQL schema and resolvers. You can download these schema and resolvers to the desktop or let\nTorchQL assemble them in a lightweight zip package in the context of a real GraphQL API. After\nrunning your unzipped application, you can use\n\u003ca href=\"https://github.com/prisma-labs/graphql-playground\"\u003eGraphQL Playground\u003c/a\u003e, a built-in\ngraphical interactive in-browser GraphQL IDE, to begin querying your database!  You also have the additional option of opening up \u003ca href=\"https://github.com/prisma-labs/graphql-playground\"\u003eGraphQL Playground\u003c/a\u003e in your existing browser and testing your schema and resolvers immediately!\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/torchql.gif\" align=\"center\" height=\"400\"\u003e\n\u003c/p\u003e\n\n## How It Works\n\n**TorchQL** elegantly uses the metadata extracted from an SQL database to generate GraphQL custom types,\nqueries, mutations, and resolvers. The schema and resolvers can be returned in either SDL or\nprogrammatic format and are downloadable as a single desktop file. For experienced users,\n**TorchQL** permits the custom editing of schemas and resolvers in the browser prior to download.\n\nFor a PostgreSQL database, enter your database address in the input box. For a MySQL database, enter\nyour host, user, password, and database information. Then select either of the following formats for\nyour GraphQL schema and resolvers:\n\n- As Schema Definition Language or **SDL**\n- As GraphQLSchema object or **Programmatic**\n\nClick the **Demo** button if you would to use an existing PostreSQL database.\n\nAfter entering your information, a new screen should appear displaying all your schema and resolvers\nproperly formatted in a text editor.\n\n\u003cstrong\u003eSDL Example\u003c/strong\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\n\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\n\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\n\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003cstrong\u003eProgrammatic Example\u003c/strong\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/torchql-schema.png?raw=true\" height=\"400\" display=block margin=auto\u003e\n\u003c/p\u003e\n\nClick on the **Back** button to reenter your database information.\n\nClick on the **Save** button to save your formatted schema and resolvers to the desktop.\n\nClick on the **Save/Test** button to save your formatted schema and resolvers as a GraphQL server file in a folder on the desktop. See below for how you can test these schema and resolvers using \u003ca href=\"https://github.com/prisma-labs/graphql-playground\"\u003eGraphQL Playground\u003c/a\u003e.\n\nClick on the **Test** button to open up \u003ca href=\"https://github.com/prisma-labs/graphql-playground\"\u003eGraphQL Playground\u003c/a\u003e in the browser and test your schema and resolvers right away!\n\n\n## How to Test Your Saved Schema and Resolvers:\n\n- **Unzip** package\n- **Open** directory\n- **Install** dependencies\n\n```bash\nnpm install\n```\n\n- **Run** application\n\n```bash\nnpm start\n```\n\nJust follow the instructions in the console or enter\nlocalhost:3000/\u003ca href=\"https://github.com/prisma-labs/graphql-playground\"\u003eplayground\u003c/a\u003e in your\nbrowser, and now you can begin querying your database!\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/download-demo.gif\" width=\"600\" display=block margin=auto\u003e\n\u003c/p\u003e\n\n## Contributing\n\nTorchQL is currently in beta release. We welcome all contributions \u0026 pull requests!\n\n## Authors\n\n- **[Eric Tang](https://www.edtang.dev)** - [@edtang44](https://github.com/edtang44)\n- **[Jimmy Chen](https://www.linkedin.com/in/jimchn/)** - [@jimchn](https://github.com/jimchn)\n- **[Mark Fusco](https://www.linkedin.com/in/marklfusco/)** -\n  [@QuestionMark3](https://github.com/QuestionMark3)\n- **[Sara Chang](https://www.linkedin.com/in/sara-chang/)** -\n  [@sarachang530](https://github.com/sarachang530)\n- **[Zac Haluza](https://haluza.dev)** - [@zhaluza](https://github.com/zhaluza)\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foslabs-beta%2FTorchQL","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foslabs-beta%2FTorchQL","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foslabs-beta%2FTorchQL/lists"}