Practical GraphQL - Become a GraphQL Ninja - Preparing the model for authentication

Practical GraphQL - Become a GraphQL Ninja - Preparing the model for authentication

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial covers extending a user model to include username and password fields, updating dummy data to align with the new model, and implementing password hashing using bcrypt. It explains how to add custom instance methods in SQL Elize and demonstrates the use of async/await for handling promises during password hashing. The tutorial emphasizes the importance of securing passwords by hashing them before database insertion.

Read more

7 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What changes are being made to the user model in the database?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Why is it important to set the username field to be unique?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What validations are suggested for the password field?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

How can we ensure that passwords are stored securely in the database?

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of the hash password method in the user model?

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain the difference between class methods and instance methods in the context of the user model.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

What role does the bcrypt library play in password management?

Evaluate responses using AI:

OFF