{"id":26921180,"url":"https://github.com/olyop/graphql-bridge","last_synced_at":"2025-10-27T13:17:20.558Z","repository":{"id":237594470,"uuid":"794853196","full_name":"olyop/graphql-bridge","owner":"olyop","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-04T14:39:44.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T04:41:31.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/olyop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T04:56:40.000Z","updated_at":"2024-09-24T03:04:27.000Z","dependencies_parsed_at":"2024-05-02T19:08:11.276Z","dependency_job_id":"c56f26f1-cb98-4703-b0b9-1fa1e6941c04","html_url":"https://github.com/olyop/graphql-bridge","commit_stats":null,"previous_names":["olyop/graphql-bridge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olyop%2Fgraphql-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olyop%2Fgraphql-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olyop%2Fgraphql-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olyop%2Fgraphql-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olyop","download_url":"https://codeload.github.com/olyop/graphql-bridge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724793,"owners_count":20823544,"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":"2025-04-01T22:53:45.800Z","updated_at":"2025-10-27T13:17:15.509Z","avatar_url":"https://github.com/olyop.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Bridge\n\nAn idea I've had recenetly, so starting a project on it (in golang!) to learn more fundamental programming tasks.\n\nThe goal of this project is to try learn how to parse \u0026 compile a \"generc data behaviour mapping\" language\nthat constructs a GraphQL Schema \u0026 Server that is mapped (in terms of data retrieval) to all our your data sources\nalready defined and handled by the engine.\n\n```graphql\n### redisCache @cache {\n###   \"key\": \"music-cache\"\n### }\n\n### musicDatabase @adapter {\n###   \"key\": \"music-database\"\n### }\n\n### auth0Management @adapter {\n###   \"key\": \"auth0-management\"\n### }\n\ntype Query {\n\tgetUsers: [User!]!\n\t### @adapter(auth0Management) retrieve {\n\t###   path: \"/api/v2/users\"\n\t### }\n\n\tgetUsersLatest: [User!]!\n\t### @adapter(auth0Management) retrieve {\n\t###   path: \"/api/v2/users\"\n\t###   query: {\n\t###     sort: \"date_added\"\n\t###     order: \"desc\"\n\t###   }\n\t### }\n\n\tgetMe: User!\n\t### @argument:set { userID: \":loggedInUserID\" }\n\n\tgetUserById(\n\t\tuserID: String! ### @argument:for { key: \"userID\" }\n\t): User!\n\n\tgetArtistById(\n\t\tartistID: String! ### @argument:for { key: \"artistID\" }\n\t): Artist!\n\n\tgetAlbumById(\n\t\talbumID: String! ### @argument:for { key: \"albumID\" }\n\t): Album!\n}\n\ntype User {\n\t### @argument declare { key: \"userID\" }\n\n\t### getAuth0User @adapter(Auth0Management) retrieve {\n\t###   \"path\": \"/api/v2/users/:userID\"\n\t### }\n\n\tuserID: String!\n\t### @adapter(auth0User) field {\n\t###   key: \"user_id\"\n\t### }\n\n\tname: String!\n\t### adapter(Auth0Management):field {\n\t###   key: \"name\"\n\t### }\n\n\tartists: [Artist!]!\n\t### adapter(MusicDatabase):manyToMany {\n\t###   table: \"users_artists\"\n\t###   where:\n\t###     user_id: \":userID\"\n\t###   orderBy: \"date_added DESC\"\n\t###   columns:\n\t###     :artistID: \"artist_id\"\n\t###   arguments: \":userID\"\n\t### }\n}\n\ntype Artist {\n\t### @argument:required { key: \"artistID\" }\n\n\t### @argument:optional {\n\t###   key: \"userID\"\n\t###   default: \":loggedInUserID\"\n\t### }\n\n\t### adapter(MusicDatabase):retrieve {\n\t###   table: \"artists\"\n\t###   columns: {\n\t###     artistID: \":artistID\"\n\t###   }\n\t### }\n\n\tartistID: String!\n\t### adapter(MusicDatabase):field {\n\t###   column: \"artist_id\"\n\t### }\n\n\tname: String!\n\t### adapter(MusicDatabase):field {\n\t###   column: \"name_id\"\n\t### }\n\n\tdateAdded: Int!\n\t### adapter(MusicDatabase):sql.oneToOne {\n\t###   table: \"users_artists\"\n\t###   where: {\n\t###     artist_id: \":artistID\"\n\t###     user_id: \":userID\"\n\t###   }\n\t### }\n\n\talbums: [Album!]!\n\t### adapter(MusicDatabase):manyToMany {\n\t###   table: \"albums_artists\"\n\t###   where: {\n\t###     artist_id: \":artistID\"\n\t###   }\n\t###   orderBy: \"created_at DESC\"\n\t###   argumentsToColumn: {\n\t###     \":albumID\": \"album_id\"\n\t###     \":userID\": \"user_id\"\n\t###   }\n\t### }\n}\n\ntype Album {\n\t### argument:required { key: \"albumID\" }\n\t### argument:optional { key: \"userID\", default: \":loggedInUserID\" }\n\n\t### adapter(MusicDatabase):retrieve {\n\t###   table: \"albums\"\n\t###   columns: {\n\t###     album_id: \":albumID\"\n\t###   }\n\t### }\n\n\talbumID: String!\n\t### adapter(MusicDatabase):field {\n\t###   column: \"album_id\"\n\t### }\n\n\ttitle: String!\n\t### adapter(MusicDatabase):field {\n\t###   column: \"title\"\n\t### }\n\n\tdateAdded: Int!\n\t### adapter(MusicDatabase):oneToOne {\n\t###   table: \"users_albums\"\n\t###   where: {\n\t###     album_id: \":albumID\"\n\t###     user_id: \":userID\"\n\t###   }\n\t### }\n\n\tartists: [Artist!]!\n\t### adapter(MusicDatabase):manyToMany {\n\t###   table: \"albums_artists\"\n\t###   where: {\n\t###     album_id: \":albumID\"\n\t###   }\n\t###   orderBy: \"created_at DESC\"\n\t###   \"argumentColumnMap\": {\n\t###     \":artistID\": \"artist_id\",\n\t###   }\n\t### }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folyop%2Fgraphql-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folyop%2Fgraphql-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folyop%2Fgraphql-bridge/lists"}