Skip to content

Xkonti/learning-surreal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning SurrealDB

A repository for holding the surreal queries used in the learning process of SurrealDB. You can watch the livestreams on my YouTube playlist.

Each stream has its own folder with the queries used in the livestream.

Stream 1 - Learning the basics

In the first stream, we learn the basics of defining tables and fields, went over various data types and learned to query them.

Watch the livestream

Stream 2 - Learning relations

In the seconds stream, we learn about the graph relations.

Watch the livestream

Stream 3 - Designing schema

In the third stream, we designed a schema for my blog.

Watch the livestream

The finished schema diagram: Finished schema diagram

Stream 4 - Authentication via JWTs from Clerk

In the fourth stream, we learn how to authenticate users using third-party authentication providers like Clerk. We also learn how to automatically create user record when the user is authenticated for the first time and keep it up to date afterwards.

Watch the livestream

Stream 5 - Permissions deep dive

The fifth stream focuses on the permissions system in SurrealDB. We learn how to use the PERMISSIONS clause and discover it's limitations. We also discover how events allow us to perform actions with elevated privileges. This led us to implementing automatic counting of likes and comments and ensuring complex requirements of comment approvals.

Watch the livestream

Stream 6 - Permissions - continued

During this stream, we continue to explore the permissions system. We implement a view table that allows us to expose only partial post data to the users while increasing the performance of various queries.

Watch the livestream

Stream 7 - Update to 2.0.0-beta.1 and test data generation

This stream covers the updates introduced in the 2.0.0-beta.1 release of SurrealDB. We explore some of the new features by updating and completing the existing schema. Then we move on to writing queries that generate tons of test data and connect it all together. We finish the stream by completing the "permissions" adventures.

Watch the livestream

Stream 8 - Sending content to the Database from Astro

⚠️ This is an upcoming livestream.

We will learn how design a set of functions that allow us to send content from the Astro build process to the database. Database will then automatically update the necessary content and remove the outdated parts.

Watch the livestream

About

Schema and queries from the series of livestreams about SurrealDB

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •