The Complete Strapi™ Course with Plugins and Deployment - Premium Posts: Solution 1

The Complete Strapi™ Course with Plugins and Deployment - Premium Posts: Solution 1

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial discusses a solution to filter premium posts for unauthenticated users by customizing the find action in a controller. It explains how to fetch all posts and filter them based on user authentication. The tutorial critiques this approach, highlighting inefficiencies and suggesting that such operations should be handled by services rather than directly in the controller. It also points out the potential performance issues when dealing with large datasets and hints at more efficient solutions in future lessons.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of the 'filtered data' variable introduced by the teacher?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What are the two main problems identified with the current solution?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What approach does the teacher suggest for future solutions regarding data fetching?

Evaluate responses using AI:

OFF