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

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

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial addresses two main issues in a current implementation: fetching unnecessary data and overloading the controller with tasks. A new solution is proposed, focusing on optimizing data fetching by rewriting the find action. The implementation involves reusing existing services with modifications, handling authenticated and public requests differently, and ensuring proper sanitization and transformation of data. Testing and debugging are conducted to ensure functionality, and edge cases are addressed. Final adjustments are made to improve the solution further.

Read more

4 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the process of sanitizing and transforming the response before sending it back.

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

How does the implementation handle cases where the client requests only non-premium articles?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What error occurs when trying to access the premium key without checking for its existence?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the final goal of the modifications made to the controller action?

Evaluate responses using AI:

OFF