{"id":15024870,"url":"https://github.com/gammaql/greldal","last_synced_at":"2025-04-12T12:32:05.597Z","repository":{"id":41798425,"uuid":"162939752","full_name":"gammaql/greldal","owner":"gammaql","description":"A micro-framework for bidirectional mapping between relational datastores and GraphQL APIs (powered by Node.js)","archived":false,"fork":false,"pushed_at":"2023-01-11T02:35:51.000Z","size":29127,"stargazers_count":58,"open_issues_count":46,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T04:41:01.373Z","etag":null,"topics":["api-server","graphql","knexjs","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://gammaql.github.io/greldal/","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/gammaql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-24T02:13:55.000Z","updated_at":"2024-08-08T14:43:44.000Z","dependencies_parsed_at":"2023-02-08T23:17:07.290Z","dependency_job_id":null,"html_url":"https://github.com/gammaql/greldal","commit_stats":null,"previous_names":["gql-dal/greldal"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammaql%2Fgreldal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammaql%2Fgreldal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammaql%2Fgreldal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammaql%2Fgreldal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammaql","download_url":"https://codeload.github.com/gammaql/greldal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566578,"owners_count":21125690,"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":["api-server","graphql","knexjs","nodejs","typescript"],"created_at":"2024-09-24T20:01:06.168Z","updated_at":"2025-04-12T12:32:03.927Z","avatar_url":"https://github.com/gammaql.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gammaql.github.io/greldal/#basic-usage\" title=\"GRelDAL Home page\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/gammaql/greldal/master/src/docs/assets/banner.png\" width=\"600\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA simple micro-framework to expose your relational datastore as a GraphQL API (powered by Node.js).\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gammaql.github.io/greldal/\"\u003eDocumentation\u003c/a\u003e | \u003ca href=\"https://github.com/gammaql/greldal/issues\"\u003eIssues\u003c/a\u003e | \u003ca href=\"https://gammaql.github.io/greldal/api\"\u003eAPI Docs\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n[GraphQL](https://graphql.org/) is a powerful solution for making your server side data available to clients through a flexible and bandwidth efficient API.\n\nHowever, if your primary data source is a **relational database** then mapping GraphQL queries to efficient database queries can be arduous. With naive hierarchical resolution of resolvers it is very easy to end up with inefficient data access patterns and [N+1 queries](https://stackoverflow.com/questions/97197/what-is-the-n1-select-query-issue). Caching strategies, dataloader etc. partly mitigate the problem but the fact remains that you are not taking the full advantage of the capabilities of your powerful datastore.\n\nGRelDAL is a **low level** library that gives you a declaritive API to map your relational data sources to GraphQL APIs. It is data store agnostic thanks to [Knex](https://knexjs.org), the underlying data access library that supports all common databases. Currently MySQL, PostgreSQL and SQLite are well tested.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\nWhen you generate your GraphQL API through GRelDAL, you can choose exactly how:\n\n- Your database table schema maps to GraphQL types.\n- Your GraphQL queries are mapped to SQL queries, including:\n  - which tables can be joined under which circumstances\n  - when batched queries can be performed\n  - when related rows can be fetched in advance in bulk, etc.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\nPlus, unlike many other similar solutions, GRelDAL has first class support for **subscriptions**, **stored procedures**, **user defined functions**, **JSON/XML/binary data** and **custom column types**.\n\n\u003ca href=\"https://gammaql.github.io/greldal/#basic-usage\" title=\"Basic Usage\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/gammaql/greldal/master/src/docs/assets/get-started-icon.png\" /\u003e\n\u003c/a\u003e\n\n---\n\n[![Build Status](https://travis-ci.org/gammaql/greldal.svg?branch=master)](https://travis-ci.org/gammaql/greldal)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgammaql%2Fgreldal.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgammaql%2Fgreldal?ref=badge_shield)\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgammaql%2Fgreldal.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgammaql%2Fgreldal?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammaql%2Fgreldal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammaql%2Fgreldal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammaql%2Fgreldal/lists"}