How ebk1996/graphql_react_event_booking_2 works
This is a Node.js Express server exposing a GraphQL event-booking API backed by MongoDB. Clients send GraphQL requests to /graphql; the server applies the schema and dispatches operations to resolvers, which query or mutate event, user, and booking records. The API includes event and booking queries, event creation, user creation, booking, and cancellation. The resolver also hashes passwords and resolves linked records. The README documents GraphiQL; source excerpts show it enabled in the HTTP middleware. Edges reflect shown calls or documented behavior; underlying Mongoose-to-database operations are not separately mapped.
Main entry points: app.js Express Server · resolvers/index.js Operation Resolvers · schema/index.js GraphQL Schema · event.js Event Records
Components 8
GraphQL API
- Express Server
app.js - GraphQL Schema
graphql/schema/index.js
Booking Operations
- Operation Resolvers
graphql/resolvers/index.js
Persistence
- Event Records
models/event.js - User Records
models/user.js - Booking Records
models/booking.js
Other components
- API Client
- MongoDB Atlas
Connections 7
- API Client → Express Server: sends GraphQL
README.md - Express Server → GraphQL Schema: configures schema
app.js - Express Server → Operation Resolvers: dispatches operations
app.js - Express Server → MongoDB Atlas: connects to
app.js - Operation Resolvers → Event Records: queries and saves
graphql/resolvers/index.js - Operation Resolvers → User Records: queries and saves
graphql/resolvers/index.js - Operation Resolvers → Booking Records: queries and saves
graphql/resolvers/index.js