Sitemap

Lost, But Coding

A place for all my programming-related content. People always say that I should stick to writing programming stuff but I have other interests too so I’ve decided that I’ll put all my programming stuff here.

Photo by Leiada Krozjhen on Unsplash

Enforcing Unique Key Constraints In Firestore

5 min readJun 17, 2023

For my RSS reader Fawn (It was Echo but apparently there was another Echo RSS so I decided to rename it to another nonsense 4 letter name) I’m using Firestore and I learned a lot about it.

I’ve never really used a database quite like Firestore before. I didn’t even know there was even such a thing as a non-SQL database because all throughout University the only database type anyone ever talked about was SQL.

And I really like NoSQL. Mostly because of the syntax. I find it much more intuitive than having to wrap your head around SELECT, WHERE, IN, HAVING, GROUP BY, etc. But it does take a bit more work to get working properly. In SQL you have access to any query you could possibly think of. NoSQL, at least with Firestore, is much more restrictive.

I’m still learning about it and today I just made another discovery.

Unique Key Constraints

Unique key constraints are something that are very easy to do in SQL and they are very useful. In fact I need this feature in my RSS app. This is because…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web
Already have an account? Sign in
Lost, But Coding

Published in Lost, But Coding

A place for all my programming-related content. People always say that I should stick to writing programming stuff but I have other interests too so I’ve decided that I’ll put all my programming stuff here.

Andrew Zuo

Written by Andrew Zuo

Nerdy and [maybe too] opinionated. I made Stratum, an RSS reader for Medium, YouTube, Reddit, and more. https://stratum.jetzt/download

Responses (1)

Write a response

Hi Andrew,
This is very helpful blog. I wanted to know how you are managing the firestore UI. Are you using the firebase UI only. Are you tired of the hassle of navigating through complex Firestore data structures and managing your Firebase projects…