GraphQL is a server-side runtime that can execute queries using a type system. It’s a query language used for APIs, created from any existing code by defining types and fields.
What Does Require Do
When a module is loaded using the require() function, the module’s code is executed and the exports object of the module is returned. The require() function can be used to load local files as well as modules installed from npm.