Short Pieces

Can GraphQL Call REST API?

Can GraphQL call REST API? Yes! Learn the simplest way to call REST from GraphQL using axios and resolvers with real working code examples.

SQL COALESCE in Postgres: A Simple Guide

A simple guide for using the SQL COALESCE function in PostgreSQL. Learn how to replace NULL values with a default value through a clear example.

SQL MAX Date: Get Latest Row with Examples

Learn how to use SQL MAX() to get the latest date and most recent rows. Real SQL examples with full row extraction and MAX with GROUP BY.

How to Inner Join 3 Tables in SQL

Discover how to inner join 3 tables in SQL using clear syntax and examples. Perfect for beginners and intermediate SQL users.

JavaScript Get Yesterday's Date Easily

Learn how to get yesterday's date in JavaScript with simple code examples. A beginner-friendly guide using the Date object to subtract one day.

TypeScript Type Vs Interface? The Answer Is Type!

Still wondering about "TypeScript Type vs Interface"? The answer is type. Learn why TypeScript type aliases are more flexible and better suited for modern development than interfaces.

How to Omit Multiple Keys in TypeScript

Learn how to omit multiple keys in TypeScript with simple examples. Understand how to use Omit, Exclude, keyof, and Pick properly to create cleaner types.

How to Use satisfies in TypeScript

Learn how to use the satisfies operator in TypeScript to enforce stricter type safety. See comparisons with as and extends, and explore real examples.

How to Use Discriminated Unions in TypeScript?

Learn how to use discriminated unions in TypeScript to simplify complex logic, improve type safety, and enable precise type narrowing in your code.

How to Use as const in TypeScript Effectively

Learn how to use as const in TypeScript to create readonly literal types, improve type safety, and write more predictable, bug-resistant code.
1 2
Scroll to Top