Challenge: Creating a Basic GraphQL Endpoint

Challenge yourself by creating a basic GraphQL endpoint with Deno.

We'll cover the following

Problem statement

For this challenge, let’s say we want to build a GraphQL endpoint for a car rental service that performs the following operations:

  • Add, delete, and update a car in the list of available cars.

  • Create a new car rental with the needed information.

  • Create a user for the person renting a car.

Playground

Implement and test your logic in the code widget below:

Tip: To test your solution, you need to test the following mutations: addCar(), deleteCar() and addUser().

Get hands-on with 1400+ tech skills courses.