{"id":22397345,"url":"https://github.com/dennypradipta/express-apollo","last_synced_at":"2026-04-18T02:05:37.160Z","repository":{"id":42297425,"uuid":"237901571","full_name":"dennypradipta/express-apollo","owner":"dennypradipta","description":"A simple example of GraphQL Apollo Server using Express and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2022-12-10T08:00:29.000Z","size":250,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T23:23:28.254Z","etag":null,"topics":["apollo-server","express","graphql","postgresql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dennypradipta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-03T06:41:29.000Z","updated_at":"2021-12-03T09:08:01.000Z","dependencies_parsed_at":"2023-01-26T04:46:31.280Z","dependency_job_id":null,"html_url":"https://github.com/dennypradipta/express-apollo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dennypradipta/express-apollo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fexpress-apollo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fexpress-apollo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fexpress-apollo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fexpress-apollo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dennypradipta","download_url":"https://codeload.github.com/dennypradipta/express-apollo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fexpress-apollo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apollo-server","express","graphql","postgresql"],"created_at":"2024-12-05T06:12:40.914Z","updated_at":"2026-04-18T02:05:37.123Z","avatar_url":"https://github.com/dennypradipta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Apollo\n\nA simple example of GraphQL Apollo Server using Express and PostgreSQL.\n\n## How to Run\n\n- Install [PostgreSQL](https://www.postgresql.org/)\n- Clone this repository using `git clone https://github.com/dennypradipta/express-apollo.git` command\n- Create .env file using the .env.example inside the express-apollo directory to configure your database connection\n- Run `npm install` to install all the depedencies\n- Run `npm run seed` to seed database\n- Run `npm run start` to start\n\n## Query Example\n\n### Get all songs\n\n```\n{\n  songs {\n    name\n    album\n  }\n}\n```\n\n### Get song by ID\n\n```\n{\n  song(id:\"55f1994a-69cf-4358-a1c6-fee93003047d\") {\n    id\n    name\n    album\n  }\n}\n```\n\n### Get all artists\n\n```\n{\n  artists {\n    id\n    name\n  }\n}\n```\n\n### Get artist by ID\n\n```\n{\n  artist(id: \"a7b943a1-ee24-471c-a153-1a71737c31c5\") {\n    id\n    name\n  }\n}\n```\n\n### Get all songs from artist by artist id\n\n```\n{\n  artist(id: \"a7b943a1-ee24-471c-a153-1a71737c31c5\") {\n    id\n    name,\n    songs {\n      name\n      album\n    }\n  }\n}\n```\n\n# References\n\n- [From REST to GraphQL: A different way to create an API (with Apollo \u0026 Node.js)](https://blog.logrocket.com/from-rest-to-graphql/)\n- [DirkWolthuis/graphql-express-migrating-mysql](https://github.com/DirkWolthuis/graphql-express-migrating-mysql)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennypradipta%2Fexpress-apollo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennypradipta%2Fexpress-apollo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennypradipta%2Fexpress-apollo/lists"}