Lessons

Explore all newline lessons

Tags
Author
Pricing
Sort By
Video
Jing Chen
Most Recent
Most Popular
Highest Rated
Reset
https://image.mux.com/xdHmr6DbuN7pI72t78zZth8qIrVhrtUF2gtVAh6sNYI/thumbnail.png?time=0

lesson

Build Example Mock Data to Test a GraphQL ServerThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

To help us get started, we'll begin by introducing a mock data array of rental listings in this lesson. This will help us get started before we begin to address more appropriate data persistence.

https://image.mux.com/nEaUwQF00YhlzR4zbf801wonMxWFh1KbT9tpvapFoh2UA/thumbnail.png?time=0

lesson

A Beginner's Guide to GraphQL Schema LanguageThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

The GraphQL schema language is a human-readable syntax to help create GraphQL schemas. In this lesson, we'll use the GraphQL schema language to re-create the schema we have in a more readable and simpler format.

https://image.mux.com/qYxTauXt002xN7VYmgRTRdMD00B6Hd2ER9YwBMzD6WIMk/thumbnail.png?time=0

lesson

How to Use GraphQL Mutations and QueriesThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

In this lesson, we'll look to mimic the listings retrieval and manipulation we had in our Express RESTful API but with GraphQL instead.

https://image.mux.com/02feCddaMzuwngSvkcxQcDCq3ICTOrKtv5eW8sNNf02f4/thumbnail.png?time=0

lesson

How to Build a GraphQL Schema with GraphQL.jsThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

In this lesson, we'll use the Apollo Server and GraphQL JavaScript libraries to create a minimal GraphQL API that we'll be able to interact within an IDE known as GraphQL Playground.

https://image.mux.com/pfVqnJCb8S7mKgqxZDK028uirOuimrk6wbNfmIFrokEE/thumbnail.png?time=0

lesson

How to Install Apollo Server for GraphQLThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

In this lesson, we'll install the Express variation of the popular Apollo Server library and the GraphQL JavaScript library.

https://image.mux.com/LyDZDsZ8RCXmK6IbNiIBK0042FYTdnyaMf2qAwOSt00b8/thumbnail.png?time=0

lesson

GraphQL Schema, Object Types, and Function ExamplesThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

In this lesson, we introduce and discuss some of GraphQL's main concepts such as the GraphQL schema, object types and resolver functions.

https://image.mux.com/QbOI19LrtJRuOZPySFdhR02JaRJCdx6xwTDMNNPyz02uk/thumbnail.png?time=0

lesson

GraphQL vs REST APIs, and When to Use GraphQLThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

Before we continue discussing some of the core concepts in GraphQL, we'll take a bit of a tangent in this lesson to contrast and compare Github's existing REST API (v3) and their GraphQL API (v4).

https://image.mux.com/E67ozl1j45uxFE0093QG7m37pyp3p1jURp7WdJc00yXLs/thumbnail.png?time=0

lesson

A GraphQL Tutorial for BeginnersThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

GraphQL is a query language for APIs. In this lesson, we go through an initial discussion on GraphQL and how GraphQL differs from traditional REST APIs.

https://image.mux.com/56rUFXIiZ7H9Y6tYc1802vAYmfb3AIzhSdItPZYKXh7o/thumbnail.png?time=0

lesson

How to Build an Express API with GET and POST RoutesThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

In this lesson, we'll use the routing capabilities Express gives us to create GET and POST routes that interact with the mock data array we've established.

https://image.mux.com/krpeROTyb81LI9jdptdu1LAxm02qm5cW3YX01yoFvEhZw/thumbnail.png?time=0

lesson

How to use ESLint to Check TypeScript Code for IssuesThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

Though VSCode includes TypeScript language support which helps us pick up TypeScript errors in our TypeScript code, we'll introduce more robust code checking with ESLint - a popular open-source JavaScript/TypeScript linting tool.

https://image.mux.com/xCDLXecqlPodQDR5rqqE92dYXcxYoofpL4kgjnr01p01g/thumbnail.png?time=0

lesson

How to Compile a TypeScript Node.js ProjectThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

TypeScript is a development tool geared towards making building JavaScript applications more robust. In an application's deployed state (browser or server), TypeScript must be compiled to valid JavaScript. In this lesson, we'll see how the TypeScript compiler provides us with a command to compile and produce JavaScript code from TypeScript.

https://image.mux.com/948bbU6qcyqyUIUwdM33zJH4NwnWWGPvGah00HBrnmLc/thumbnail.png?time=0

lesson

How to Set up a Node.js Server with TypeScriptThe newline Guide to Building Your First GraphQL Server with Node and TypeScript

We'll get started with TypeScript in this lesson by installing a few necessary packages in our server and setting up the configuration of our TypeScript compiler.