{"id":26235673,"url":"https://github.com/dxtaner/graphql_events","last_synced_at":"2026-04-29T19:32:57.594Z","repository":{"id":134096606,"uuid":"489421228","full_name":"dxtaner/Graphql_Events","owner":"dxtaner","description":"Graphql-Events","archived":false,"fork":false,"pushed_at":"2025-01-24T06:36:46.000Z","size":170,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T10:48:15.439Z","etag":null,"topics":["data","events","graphql"],"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/dxtaner.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,"zenodo":null}},"created_at":"2022-05-06T16:22:26.000Z","updated_at":"2025-01-24T06:36:50.000Z","dependencies_parsed_at":"2025-06-19T10:36:48.397Z","dependency_job_id":"04b4c2e6-1080-4692-9928-72b3a9777ffe","html_url":"https://github.com/dxtaner/Graphql_Events","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dxtaner/Graphql_Events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FGraphql_Events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FGraphql_Events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FGraphql_Events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FGraphql_Events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxtaner","download_url":"https://codeload.github.com/dxtaner/Graphql_Events/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FGraphql_Events/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data","events","graphql"],"created_at":"2025-03-13T03:17:16.152Z","updated_at":"2026-04-29T19:32:57.579Z","avatar_url":"https://github.com/dxtaner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL API with Apollo Server\r\n\r\nThis project is a basic GraphQL API built with Apollo Server. It supports querying, mutating, and subscribing to data for Events, Locations, Users, and Participants.\r\n\r\n## Features\r\n\r\n- Query, create, update, and delete Events, Locations, Users, and Participants.\r\n- Real-time subscriptions for tracking changes in the data.\r\n- Integrated GraphQL Playground for testing and debugging.\r\n\r\n## Installation\r\n\r\n1. Clone the repository:\r\n   ```bash\r\n   git clone (https://github.com/dxtaner/Graphql_Events)\r\n   cd \u003crepository-folder\u003e\r\n   ```\r\n\r\n2. Install dependencies:\r\n   ```bash\r\n   npm install\r\n   ```\r\n\r\n3. Start the server:\r\n   ```bash\r\n   npm start\r\n   ```\r\n\r\nThe server will start, and you can access the GraphQL Playground at `http://localhost:4000/`.\r\n\r\n## Project Structure\r\n\r\n- **data.js**: Contains mock data for events, locations, users, and participants.\r\n- **index.js**: Main file defining the schema, resolvers, and server setup.\r\n\r\n## GraphQL Schema\r\n\r\n### Types\r\n\r\n#### Event\r\n- `id`: ID!\r\n- `title`: String!\r\n- `desc`: String!\r\n- `date`: String!\r\n- `from`: String!\r\n- `to`: String!\r\n- `location_id`: ID!\r\n- `user_id`: ID!\r\n- `user`: User!\r\n- `location`: Location!\r\n- `participants`: [Participant!]!\r\n\r\n#### Location\r\n- `id`: ID!\r\n- `name`: String!\r\n- `desc`: String!\r\n- `lat`: Float!\r\n- `lng`: Float!\r\n\r\n#### User\r\n- `id`: ID!\r\n- `username`: String!\r\n- `email`: String!\r\n- `events`: [Event]!\r\n\r\n#### Participant\r\n- `id`: ID!\r\n- `user_id`: ID!\r\n- `event_id`: ID!\r\n\r\n### Queries\r\n\r\n- `events`: Retrieve all events.\r\n- `event(id: ID!)`: Retrieve a single event by ID.\r\n- `locations`: Retrieve all locations.\r\n- `location(id: ID!)`: Retrieve a single location by ID.\r\n- `users`: Retrieve all users.\r\n- `user(id: ID!)`: Retrieve a single user by ID.\r\n- `participants`: Retrieve all participants.\r\n- `participant(id: ID!)`: Retrieve a single participant by ID.\r\n\r\n### Mutations\r\n\r\n#### User Mutations\r\n- `createUser(data: CreateUserInput!): User!`\r\n- `updateUser(id: ID!, data: UpdateUserInput!): User!`\r\n- `deleteUser(id: ID!): User!`\r\n- `deleteAllUsers: DeleteAllOutput!`\r\n\r\n#### Event Mutations\r\n- `createEvent(data: CreateEventInput!): Event!`\r\n- `updateEvent(id: ID!, data: UpdateEventInput!): Event!`\r\n- `deleteEvent(id: ID!): Event!`\r\n- `deleteAllEvents: DeleteAllOutput!`\r\n\r\n#### Location Mutations\r\n- `createLocation(data: CreateLocationInput!): Location!`\r\n- `updateLocation(id: ID!, data: UpdateLocationInput!): Location!`\r\n- `deleteLocation(id: ID!): Location!`\r\n- `deleteAllLocations: DeleteAllOutput!`\r\n\r\n#### Participant Mutations\r\n- `createParticipant(data: CreateParticipantInput!): Participant!`\r\n- `updateParticipant(id: ID!, data: UpdateParticipantInput!): Participant!`\r\n- `deleteParticipant(id: ID!): Participant!`\r\n- `deleteAllParticipants: DeleteAllOutput!`\r\n\r\n### Subscriptions\r\n\r\nReal-time updates for all entity types:\r\n\r\n#### User Subscriptions\r\n- `userCreated: User!`\r\n- `userUpdated: User!`\r\n- `userDeleted: User!`\r\n\r\n#### Event Subscriptions\r\n- `eventCreated: Event!`\r\n- `eventUpdated: Event!`\r\n- `eventDeleted: Event!`\r\n\r\n#### Location Subscriptions\r\n- `locationCreated: Location!`\r\n- `locationUpdated: Location!`\r\n- `locationDeleted: Location!`\r\n\r\n#### Participant Subscriptions\r\n- `participantCreated(event_id: ID): Participant!`\r\n- `participantUpdated: Participant!`\r\n- `participantDeleted: Participant!`\r\n\r\n## Example Queries\r\n\r\n### Query Example\r\n```graphql\r\nquery GetEvents {\r\n  events {\r\n    id\r\n    title\r\n    date\r\n    location {\r\n      name\r\n    }\r\n    user {\r\n      username\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### Mutation Example\r\n```graphql\r\nmutation CreateUser {\r\n  createUser(data: { username: \"JohnDoe\", email: \"johndoe@example.com\" }) {\r\n    id\r\n    username\r\n    email\r\n  }\r\n}\r\n```\r\n\r\n### Subscription Example\r\n```graphql\r\nsubscription OnUserCreated {\r\n  userCreated {\r\n    id\r\n    username\r\n    email\r\n  }\r\n}\r\n```\r\n\r\n## Technologies Used\r\n\r\n- **Node.js**: Runtime environment.\r\n- **Apollo Server**: GraphQL server.\r\n- **GraphQL Subscriptions**: Real-time updates using `graphql-subscriptions`.\r\n\r\n## License\r\n\r\nThis project is open-source and available under the [MIT License](LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fgraphql_events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxtaner%2Fgraphql_events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fgraphql_events/lists"}