Adding Dependencies to the Project
Explore how to add essential dependencies to your Deno GraphQL project by using standard libraries such as log and fs, and integrating third-party modules for databases and GraphQL. Understand configuring log levels and the use of popular GraphQL libraries like Oak-GraphQL to support your endpoint development.
We'll cover the following...
We'll cover the following...
Standard libraries
A common file we need to import is from https://deno.land/std@0.117.0/http/server.ts, located at std@0.117.0/http. This is a reference to the HTTP module under Deno’s standard library (std) version 0.117.0.
Like the HTTP module, there are a lot of standard Deno modules. Some of the most common are the following:
fs: This module manipulates the file system.log: This module is a logger for Deno.uuid: This module is generated and handled by Deno, and it looks likecf50b876-1bce-11ed-861d-0242ac120002.ws: This module allows for work with WebSockets.
These modules are ...