{"id":16222143,"url":"https://github.com/hugodf/js-graphql-client-example","last_synced_at":"2025-03-19T11:31:17.122Z","repository":{"id":85774033,"uuid":"143715941","full_name":"HugoDF/js-graphql-client-example","owner":"HugoDF","description":"An example consuming a GraphQL API from JavaScript using graphql.js.","archived":false,"fork":false,"pushed_at":"2023-03-02T05:00:37.000Z","size":489,"stargazers_count":1,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T18:33:56.304Z","etag":null,"topics":["github-pages","graphql-client","graphql-js","javascript","parcel-bundler"],"latest_commit_sha":null,"homepage":"https://hugodf.github.io/js-graphql-client-example","language":"HTML","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/HugoDF.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":"2018-08-06T10:56:57.000Z","updated_at":"2018-09-06T15:31:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc08d977-1e1d-4ce1-8e00-56e72b707941","html_url":"https://github.com/HugoDF/js-graphql-client-example","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/HugoDF%2Fjs-graphql-client-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjs-graphql-client-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjs-graphql-client-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fjs-graphql-client-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoDF","download_url":"https://codeload.github.com/HugoDF/js-graphql-client-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989109,"owners_count":20379648,"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":["github-pages","graphql-client","graphql-js","javascript","parcel-bundler"],"created_at":"2024-10-10T12:11:24.547Z","updated_at":"2025-03-19T11:31:16.800Z","avatar_url":"https://github.com/HugoDF.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript GraphQL Example\n\nExample consuming a GraphQL API from JavaScript using `graphql.js`. \n\n## See it live\n\n[https://codewithhugo.com/js-graphql-client-example/](https://codewithhugo.com/js-graphql-client-example/)\n\n## Run Node script\n\n```sh\n$ npm install\n```\n\n```sh\n$ node fetch.js\n{\n  \"pokemon\": {\n    \"attacks\": {\n      \"special\": [\n        {\n          \"name\": \"Discharge\"\n        },\n        {\n          \"name\": \"Thunder\"\n        },\n        {\n          \"name\": \"Thunderbolt\"\n        }\n      ]\n    }\n  }\n}\n```\n\n## Run client-side app\n\n### Locally\n\n- Clone the repo\n\n- Install dependencies\n  ```sh\n  $ npm install\n  ```\n\n- Run using parcel:\n  ```sh\n  $ npm start # or npx parcel index.html\n  ```\n\n- Open [http://localhost:1234](http://localhost:1234)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fjs-graphql-client-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugodf%2Fjs-graphql-client-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fjs-graphql-client-example/lists"}