{"id":23925255,"url":"https://github.com/programming-communities/graphql-server-with-apollo","last_synced_at":"2025-04-12T03:41:19.680Z","repository":{"id":236677571,"uuid":"792921892","full_name":"Programming-Communities/graphql-server-with-apollo","owner":"Programming-Communities","description":"GraphQL Server with Apollo Client","archived":false,"fork":false,"pushed_at":"2025-02-23T04:03:20.000Z","size":602,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T23:14:18.701Z","etag":null,"topics":["graphql"],"latest_commit_sha":null,"homepage":"https://amir.com.pk/project/study-portal","language":"TypeScript","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/Programming-Communities.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-27T23:41:01.000Z","updated_at":"2025-02-23T04:03:23.000Z","dependencies_parsed_at":"2024-04-28T07:03:27.176Z","dependency_job_id":null,"html_url":"https://github.com/Programming-Communities/graphql-server-with-apollo","commit_stats":null,"previous_names":["aamir-shahzadah/graphql-server-with-apollo","programing-community/graphql-server-with-apollo","programming-communities/graphql-server-with-apollo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2Fgraphql-server-with-apollo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2Fgraphql-server-with-apollo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2Fgraphql-server-with-apollo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Programming-Communities%2Fgraphql-server-with-apollo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Programming-Communities","download_url":"https://codeload.github.com/Programming-Communities/graphql-server-with-apollo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514217,"owners_count":21116899,"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"],"created_at":"2025-01-05T20:12:43.855Z","updated_at":"2025-04-12T03:41:19.674Z","avatar_url":"https://github.com/Programming-Communities.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js + GraphQL Server\n\nThis project is a [Next.js](https://nextjs.org/) application bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) and integrated with GraphQL using `@apollo/server` and `@as-integrations/next`.\n\n## Getting Started\n\n### Run the Development Server\n\nUse one of the following commands to start the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser to view the application.\n\n### Editing the Page\nModify `app/page.tsx` to make changes to the main page. The page auto-updates as you edit the file.\n\n### Font Optimization\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## GraphQL Server Setup\n\n### File Structure\n\nThe GraphQL API is located in:\n```\napp/api/graphql/route.ts (or route.js for JavaScript users)\n```\nCreate the `api` and `graphql` folders under `app` if they do not exist.\n\n### Installing Dependencies\n\nInstall the required GraphQL and Apollo Server packages:\n```bash\nnpm install @as-integrations/next @apollo/server\n```\nOptionally, install `graphql-tag` for query parsing:\n```bash\nnpm install graphql-tag\n```\n\n### GraphQL Queries\nGraphQL queries can be written as raw strings:\n```graphql\nconst query = `\n  query {\n    users {\n      id\n      name\n    }\n  }\n`;\n```\n\n### API Operations\nGraphQL supports the following operations:\n- **Query** (Read data)\n- **Mutation** (Modify data)\n- **Subscription** (Real-time updates)\n\nFor more details on GraphQL types, refer to the official documentation: [GraphQL Type System](https://graphql.org/learn/schema/#type-system).\n\n### Dummy Data API\nYou can use [DummyJSON](https://dummyjson.com/docs/products) for testing GraphQL queries with sample data.\n\n## Learn More\n\nTo deepen your understanding of Next.js and GraphQL:\n- [Next.js Documentation](https://nextjs.org/docs) - Learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - Interactive Next.js tutorial.\n- [Apollo Server Integration](https://www.npmjs.com/package/@as-integrations/next#getting-started) - Guide on integrating Apollo Server with Next.js.\n\n## Deployment\n\nDeploy your Next.js app easily using [Vercel](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app), the creators of Next.js.\n\nRefer to the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\n\n\n\nGet Post Put Delete          relly time \nQuery ,    Mutation    Subscriptions\n\n\nfor types \nhttps://graphql.org/learn/schema/#type-system\n\napi for dummy data \n\nhttps://dummyjson.com/docs/products\n\n\n![alt text](image.png)\n![alt text](image-1.png)\n![alt text](image-2.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramming-communities%2Fgraphql-server-with-apollo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogramming-communities%2Fgraphql-server-with-apollo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramming-communities%2Fgraphql-server-with-apollo/lists"}