{"id":24847406,"url":"https://github.com/nikharx/update-2k24","last_synced_at":"2025-03-26T10:20:25.086Z","repository":{"id":273813660,"uuid":"848615514","full_name":"nikharx/update-2k24","owner":"nikharx","description":"Website for Updates 2k24","archived":false,"fork":false,"pushed_at":"2024-09-28T14:37:50.000Z","size":162743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-31T11:34:28.450Z","etag":null,"topics":["magic-ui","mongodb","next-auth","nextjs","tailwindcss"],"latest_commit_sha":null,"homepage":"https://coupdates.in","language":"TypeScript","has_issues":false,"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/nikharx.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-08-28T04:55:04.000Z","updated_at":"2024-12-05T12:10:50.000Z","dependencies_parsed_at":"2025-01-23T06:21:34.792Z","dependency_job_id":null,"html_url":"https://github.com/nikharx/update-2k24","commit_stats":null,"previous_names":["nikharx/update-2k24"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikharx%2Fupdate-2k24","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikharx%2Fupdate-2k24/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikharx%2Fupdate-2k24/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikharx%2Fupdate-2k24/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikharx","download_url":"https://codeload.github.com/nikharx/update-2k24/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632351,"owners_count":20647194,"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":["magic-ui","mongodb","next-auth","nextjs","tailwindcss"],"created_at":"2025-01-31T11:29:34.011Z","updated_at":"2025-03-26T10:20:25.057Z","avatar_url":"https://github.com/nikharx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Getting Started\n\nFirst, run 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) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\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## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\n\n//  pipeline for csv \n[\n\n{\n$match: {\n      eventId:ObjectId('66cb346fe06ce5bf0dbf0c59'),\n    }\n  }\n  ,\n  {\n    $lookup: {\n      from: \"users\",\n      localField: \"userId\",\n      foreignField: \"_id\",\n      as: \"user\",\n      pipeline:[\n        {\n          $project: {\n            _id : 0,\n            name: 1,\n            email: 1\n          }\n        }\n      ]\n    }\n  },\n  {\n    $lookup: {\n      from: \"userdetails\",\n      localField: \"userId\",\n      foreignField: \"userId\",\n      as: \"result2\",\n      pipeline:[\n        {\n          $project: {\n            _id : 0,\n           createdAt:0,\n            updatedAt:0,\n\t\t\t\t\t\tuserId:0,\n            __v:0\n          }\n        }\n      ]\n    }\n  },\n  {\n    $addFields: {\n    \t\tuser: { $first : \"$user\" },\ndetail:{$first:\"$result2\"}\n}\n},\n{\n$project: {\n\\_id:0,\nuserId:0,\neventId:0,\ncreatedAt:0,\nupdatedAt:0,\n\\_\\_v:0,\nresult2:0\n}\n}\n]\n\n//pieline for groupregistration::\n[\n{\n$match: {\n      eventId: ObjectId(\n        \"66cef94fc4200ae4be85e3c1\"\n      ),\n    },\n  },\n  {\n    $lookup: {\n      from: \"users\",\n      localField: \"userId\",\n      foreignField: \"_id\",\n      as: \"user\",\n      pipeline: [\n        {\n          $project: {\n            _id: 0,\n            name: 1,\n            email: 1,\n          },\n        },\n      ],\n    },\n  },\n  {\n    $lookup: {\n      from: \"userdetails\",\n      localField: \"userId\",\n      foreignField: \"userId\",\n      as: \"detail\",\n      pipeline: [\n        {\n          $project: {\n            _id: 0,\n            createdAt: 0,\n            updatedAt: 0,\n            userId: 0,\n            __v: 0,\n          },\n        },\n      ],\n    },\n  },\n  {\n    $addFields: {\n      user: {\n        $first: \"$user\",\n},\ndetail: {\n$first: \"$detail\",\n},\n},\n},\n{\n$sort: {\ngroupId: 1,\n},\n},\n{\n$project: {\n\\_id: 0,\nuserId: 0,\neventId: 0,\ngroupId: 0,\ncreatedAt: 0,\nupdatedAt: 0,\n\\_\\_v: 0,\n},\n},\n]\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikharx%2Fupdate-2k24","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikharx%2Fupdate-2k24","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikharx%2Fupdate-2k24/lists"}