Getting Started with Firebase 9 #7 - Firestore Queries

  Рет қаралды 58,028

Net Ninja

Net Ninja

2 жыл бұрын

In this firebase tutorial you'll learn how to perform more complex queries to fetch only documents which match a certain criteria.
🐱‍👤 Course files:
github.com/iamshaunjp/Getting...
🐱‍👤 My Premium Udemy courses:
thenetninja.co.uk/udemy/react...
thenetninja.co.uk/udemy/vue-a...
thenetninja.co.uk/udemy/moder...
thenetninja.co.uk/udemy/d3-an...
🐱‍👤 Get access to all other premium courses on Net Ninja Pro:
netninja.dev/
🐱‍💻 My Social Links:
Facebook - / thenetninjauk
Twitter - / thenetninjauk
Instagram - / thenetninja

Пікірлер: 38
@AR-oz4uw
@AR-oz4uw Жыл бұрын
This guy is a walking wiki of firebase docs, thanks!
@amirtorabi3978
@amirtorabi3978 2 жыл бұрын
Undoubtly, one of best tutorial in the field of firebase
@GurpreetSingh-ml7qm
@GurpreetSingh-ml7qm 2 жыл бұрын
Love your way of teaching with live projects, keep up the goog work my friend, love from India :)
@understandingyourself
@understandingyourself 2 жыл бұрын
This serie of tutorial is exactly what i needed. Thanks a lot!
@tech3425
@tech3425 2 жыл бұрын
Great course! Looking forward to more indepth Firebase 9 courses
@qoosimabdulghaniyy8773
@qoosimabdulghaniyy8773 Жыл бұрын
You're indeed a great teacher.
@johncmm9759
@johncmm9759 2 жыл бұрын
Your videos are so helpful. Thank you so much!
@hv6411
@hv6411 3 ай бұрын
Awesome tutorial🤩
@warrengaytero1682
@warrengaytero1682 2 жыл бұрын
This man is a legend
@edisonmondal2798
@edisonmondal2798 Жыл бұрын
Sir! You have saved my life ❤❤🔥🔥🖤🖤
@27sosite73
@27sosite73 2 жыл бұрын
great course! not with react but still might be helpfull for people that are intrested in vanilla js good luckm ninja
@cst001anantharajd2
@cst001anantharajd2 Жыл бұрын
Your video are awesome
@mohamedyoussef8835
@mohamedyoussef8835 2 жыл бұрын
Awesome Tutorial ++++++++++++++++++++ Thank You
@manoj-k
@manoj-k 2 жыл бұрын
🔥🔥🔥
@mehmetilhan6083
@mehmetilhan6083 2 жыл бұрын
thanks...
@IliyaDamyanov
@IliyaDamyanov 4 ай бұрын
Good video.
@NetNinja
@NetNinja 4 ай бұрын
Thanks!
@Omerko
@Omerko 2 жыл бұрын
Do you plan maybe to create an entire project using Firebase 9?
@mahkhaikeat1726
@mahkhaikeat1726 2 жыл бұрын
Nice!!!!!!!!!
@MrCuteguylol
@MrCuteguylol 2 жыл бұрын
Hi! Finally someone uploading videos related to firebase v9. Can u upload a version about data validation using firebase? for instance if i submit a form, and in that form if the ID number already exists, then my form should throw an error
@maskman4821
@maskman4821 2 жыл бұрын
you should implement this logic yourself, you know what I am saying 🤔
@maskman4821
@maskman4821 2 жыл бұрын
Take Shaun's latest released Reactjs course, you can find the solotions you are asking 😃
@hidami3241
@hidami3241 2 жыл бұрын
@@maskman4821 shhh go n sleep
@MrCuteguylol
@MrCuteguylol 2 жыл бұрын
@@maskman4821 actually i didnt want this logic on frontend. And i dont know backend programming. Logic is actually fairly simple but i wanted to use backend programming for this
@MrCuteguylol
@MrCuteguylol 2 жыл бұрын
@@maskman4821 and thanks for the recommendation!
@simionandrei5409
@simionandrei5409 2 жыл бұрын
Nice video! Is it a way to pass as an argument a variable? I want to look like this: where(''userID", "==", userID), where userID variable comes as a props withing my component.
@danielwatson6529
@danielwatson6529 Жыл бұрын
did u find the answer?
@jsricochet
@jsricochet Жыл бұрын
@@danielwatson6529 I did that by creating a Search component (in React): import { useState } from 'react'; export default function Search({ handleSearch }) { const [searchTerms, setSearchTerms] = useState(''); return ( setSearchTerms(e.target.value)} placeholder='search terms' /> handleSearch(searchTerms)}>search ); } And then by using this Search component in App.jsx: async function handleSearch(searchTerms) { console.log(searchTerms); const searchQuery = query(colRef, where('technoName', '==', searchTerms)); const searchSnapshot = await getDocs(searchQuery); searchSnapshot.forEach((doc) => { console.log(doc.id, ' => ', doc.data()); }); getTechnos(searchSnapshot); } function getTechnos(snapshot) { let result = []; snapshot.docs.forEach((doc) => { result = [...result, { ...doc.data(), id: doc.id }]; }); setTechnos(result); } Be careful: it is case sensitive. There is no contains or 'SQL Like' in Firestore.
@danielwatson6529
@danielwatson6529 Жыл бұрын
@@jsricochet nice
@codingcambodia
@codingcambodia 2 жыл бұрын
Do we need to use state management with firebase?
@muzingayemoyo9607
@muzingayemoyo9607 2 жыл бұрын
anyone know how to add AND or OR to the query function am trying to retrive docs based on multiple field paths
@dwips7173
@dwips7173 2 жыл бұрын
How to query subcollection?
@pyaephyowin1489
@pyaephyowin1489 Жыл бұрын
firebase error message in my machine did not get a link for generating the required index. how about you guys.
@akshatchaube1213
@akshatchaube1213 10 ай бұрын
The query isn't working for me : (
@jv.bianchi
@jv.bianchi 2 жыл бұрын
A new book from Patrick Rothfuss????
@danielamartinezduque5928
@danielamartinezduque5928 Жыл бұрын
I need help with my code, can someone help me?
Cloud Firestore Data Modeling (Google I/O'19)
40:37
Firebase
Рет қаралды 171 М.
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 97 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 35 МЛН
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 583 М.
Understanding Firestore queries - Firebase v9
13:21
Atomic Code
Рет қаралды 6 М.
I tried 5 Firebase alternatives
10:31
Fireship
Рет қаралды 766 М.
Firestore Data Modeling - Five Cool Techniques
11:44
Fireship
Рет қаралды 253 М.
Learn React In 30 Minutes
27:16
Web Dev Simplified
Рет қаралды 1,3 МЛН
React With Firebase/Firestore | CRUD and Queries | Version 9
14:27
Sam Fromaway
Рет қаралды 22 М.
Firestore Security Rules - How to Hack a Firebase App
10:05
Fireship
Рет қаралды 129 М.
Getting started with Cloud Functions
19:26
Firebase
Рет қаралды 34 М.