Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write Queries #12

Open
4 of 6 tasks
JayeshVP24 opened this issue Jan 1, 2023 · 0 comments
Open
4 of 6 tasks

Write Queries #12

JayeshVP24 opened this issue Jan 1, 2023 · 0 comments
Assignees

Comments

@JayeshVP24
Copy link
Owner

JayeshVP24 commented Jan 1, 2023

Queries for events collection

x* == collection x

  • ADD EVENT

clubs* -> club id -> events *-> add doc

  • VIEW ATTENDANCE

clubs* -> club id -> events* -> event id -> get attendance ()

  • ADD ATTENDANCE

clubs* -> club id -> events* -> event id -> add attendance(array of UIDs)
clubs* -> club id -> students* -> arrayOfUIDs-> appendArray(event event ID)

  • SHOW STUDENT ATTENDANCE

clubs* -> every club -> students* -> student uid -> take(events list)
-> events -> events list -> take(details)

  • ADD ATTENDEE

clubs* -> club id -> events* -> event id -> appendArray(student uid)
clubs* -> club id -> students -> student id -> appendArray(event id)

  • DELETE ATTENDEE

clubs* -> club id -> events* -> event id -> removeArray(student uid)
clubs* -> club id -> students -> student id -> removeArray(event id)

@JayeshVP24 JayeshVP24 self-assigned this Jan 1, 2023
JayeshVP24 added a commit that referenced this issue Jan 11, 2023
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

No branches or pull requests

1 participant