- The thread of execution: Walking through the code
- A place to store the bits of data (variiable storage)
// In a production application make sure collections are indexed for performance reasons | |
// Anything you are finding (.find()) on in mongo make sure it is an index |
#GraphQL
can be used with several popular libraries for Node.js: Express, Koa, Hapi. Apollo itself is kept library agnostic, so it is possible to connect it with a lot of third-party libraries in client but also server applications.
An abstraction around apollo, graphql, express to give you everything you need to create a graphql server
The first Execution Context that gets created when the JavaScript engine runs your code is called the “Global Execution Context”.
in the Global Creation phase, the JavaScript engine will:
- Create a global object.
- Create an object called “this”.
- Set up memory space for variables and functions.
- Assign variable declarations a default value of “undefined” while placing any function declarations in memory.
A JSON Web Token (JWT) is a safe, compact, and self-contained way of transmitting information between multiple parties in the form of a JSON object.
A JSON Web Token consists of three parts that are separated by a “.”. They are: Header, Payload, Signature
The header typically consists of two parts: the token’s type, and the hashing algorithm that is being used.
Remember that the HEAD is Git’s way of referring to the current snapshot
- Merging takes the contents of a source branch and integrated them with a target branch. In this process, only the target branch is changed.
- This will create a "Merge commit" in the feature branch that holds the history of both branches
## Test |
Functions can be used just like any other value: they can be passed around, assigned to variables, or they can be stored in arrays or objects.
const introduction = () => "Hello! My name is "
const welcome = (name, intro) => intro() + name
welcome("Kurt", introduction()) // Hello! My name is Kurt