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

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

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial discusses a problem with manipulating data inside a controller and proposes a cleaner solution by creating a custom service to fetch non-premium posts. The implementation involves creating a new async find method and a custom service that handles query objects. The tutorial emphasizes the benefits of this approach, such as cleaner controller code and efficient data processing. The solution is tested to ensure it returns the expected results, highlighting the importance of dedicated services in maintaining clean architecture.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the significance of the 'find public' method in the new implementation?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the role of the controller in the new service architecture.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

How does the new implementation ensure that the controller's code remains clean?

Evaluate responses using AI:

OFF