Skip to content

Conversation

@Wreck-X
Copy link
Member

@Wreck-X Wreck-X commented Jun 29, 2024

Pull Request Description

This pull request refactors the project structure to enhance modularity and maintainability while also adding new GraphQL features. The code is reorganized into a more logical and cohesive format, separating concerns and making it easier to manage and extend in the future. Key changes and new additions include:

Consolidation of database models into a single db.rs file.
Consolidation of GraphQL resolvers (queries and mutations) into a single graphql.rs file.
Clear separation of configuration and routes into config.rs and routes.rs respectively.
Added new GraphQL queries and mutations for retrieving users and attendance, and for adding members.

Summary of Changes

src/db.rs: Contains database models for Member and Attendance.
src/graphql.rs: Contains GraphQL resolvers for queries and mutations.
src/config.rs: (Placeholder for any configuration-related code).
src/routes.rs: Contains route definitions and GraphiQL setup.
src/main.rs: Main application setup, including database migration and server initialization.

New Additions

GraphQL Queries:
    get_users: Fetches a list of users.
    get_attendance: Fetches attendance records for a given date.
GraphQL Mutation:
    add_member: Adds a new member to the database.

@ivinjabraham
Copy link
Member

ivinjabraham commented Jun 29, 2024

Looks good but please commit more frequently and add documentation.

@ivinjabraham ivinjabraham merged commit aef23aa into master Jun 29, 2024
Wreck-X pushed a commit that referenced this pull request Nov 21, 2024
Wreck-X added a commit that referenced this pull request Nov 21, 2024
Add: field for discord id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants