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

Displaying data from db #28

Merged
merged 12 commits into from
Nov 10, 2023
Merged

Displaying data from db #28

merged 12 commits into from
Nov 10, 2023

Conversation

Prakhar-commits
Copy link
Contributor

Displaying Data from the Database

const { data } = await instance.get(`/quiz?_page=${page}&_limit=${limit}`);
async function getData(page: number, limit: number) {
const { data } = await instance.get(
`api/session?session_id_is_null=true&offset=${page}&limit=${limit}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need two functions. one where session id is null, and one where you make request directly to api/session?offset=${page}&limit=${limit}

and then process results.

also u need to display only quizzes for quiz creator part. that is, where platform variable is set to "quiz". for now, display those where platform variable is set to "meet" too. but eventually, we need a filter for this.

when we expand quiz creator to general session creator, we will have another tab wherein we display only "meet" platform sessions

@suryabulusu suryabulusu merged commit 0e792ae into main Nov 10, 2023
1 check passed
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.

2 participants