Practical GraphQL - Become a GraphQL Ninja - Uploading images via GraphQL

Practical GraphQL - Become a GraphQL Ninja - Uploading images via GraphQL

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through the process of adding a photo column to a user model, updating the type definition, and implementing an image upload feature using Cloudinary. It covers configuring Cloudinary with environment variables, creating a mutation for image upload, and testing the functionality. The tutorial emphasizes the importance of authentication and updating the database with the uploaded image's public ID.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the new column added to the user model for storing photos?

Date

Boolean

String

Integer

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the photo field in the user type definition not made non-nullable?

Because all users must have a photo

Because the photo field is not important

Because it is a temporary field

Because some users might not have a photo

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first requirement for uploading an image?

The image size must be less than 1MB

The user must have admin rights

The image must be in PNG format

The user must be logged in

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SDK is used for uploading images to the cloud?

AWS SDK

Azure SDK

Cloudinary SDK

Firebase SDK

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three things required to configure Cloudinary?

Cloud name, API key, API secret

Cloud name, API key, API endpoint

API key, API secret, API endpoint

Cloud name, API endpoint, API secret

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'uploads' folder in the implementation?

To store user data

To store configuration files

To store temporary files

To store uploaded images

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is the image uploaded to Cloudinary?

Using a third-party library

Using a custom script

Using Cloudinary's uploader in version 2

Using Cloudinary's REST API

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?