{"id":16178177,"url":"https://github.com/charlypoly/generic-graphql","last_synced_at":"2025-04-07T11:29:01.841Z","repository":{"id":142836494,"uuid":"83679394","full_name":"charlypoly/generic-graphql","owner":"charlypoly","description":"Generic GraphQL Wrapper for Rest API","archived":false,"fork":false,"pushed_at":"2017-03-11T19:01:16.000Z","size":4,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T11:02:36.830Z","etag":null,"topics":["graphql","node-module","rest-api","typescript-library"],"latest_commit_sha":null,"homepage":null,"language":null,"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/charlypoly.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":"2017-03-02T13:14:33.000Z","updated_at":"2017-10-12T12:02:37.000Z","dependencies_parsed_at":"2023-06-04T23:15:39.921Z","dependency_job_id":null,"html_url":"https://github.com/charlypoly/generic-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fgeneric-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fgeneric-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fgeneric-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fgeneric-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlypoly","download_url":"https://codeload.github.com/charlypoly/generic-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247643176,"owners_count":20972051,"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":["graphql","node-module","rest-api","typescript-library"],"created_at":"2024-10-10T05:12:53.353Z","updated_at":"2025-04-07T11:29:01.809Z","avatar_url":"https://github.com/charlypoly.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# generic-graphql\n\n\u003e Generic GraphQL Wrapper for Rest API\n\n--------------------\n\n### Design goal\n\n\n```typescript\n\nlet schema = `\n  type Artist {\n    id: String\n    name: String\n    popularity: Int\n    type: String\n  }\n`;\n\nlet configuration = {\n  root: 'http://myapi.com/api/v1',\n  oAuth: false,\n  inferRessourceFromTypes: true,\n  generateQueries: true\n};\n\nlet client: GenericGraphQLClient = new GenericGraphQL({\n  adapter: new GenericGraphQLCRUD(configuration)\n});\n\nlet query = `{\n  query {\n    artist($id: 1) {\n      name\n    }\n  }\n}`;\n\n// call `http://myapi.com/api/v1/artists/1`\nclient.query(query, (executionResult) =\u003e {\n\n});\n\n```\n\n\n#### Dependencies\n- istanbul\n- mocha\n- request\n- graphql-tools\n- lodash ?\n- when ?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlypoly%2Fgeneric-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlypoly%2Fgeneric-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlypoly%2Fgeneric-graphql/lists"}