Getting Started with Firebase 9 #5 - Adding & Deleting Documents

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 81

  • @austinperrine23
    @austinperrine23 2 ปีที่แล้ว +8

    This playlist has brought my soul back to life. Thank you

    • @NetNinja
      @NetNinja  2 ปีที่แล้ว

      Aha, glad to hear that Austin!

  • @monique2839
    @monique2839 2 ปีที่แล้ว +12

    These tutorials are very beginner friendly and concise. Thank you Shaun for putting out such great content!!

  • @VasilBituniPhotography
    @VasilBituniPhotography 3 ปีที่แล้ว +9

    'The name of the wind' and 'The way of kings' are my two favorite book series. I was happy when I saw you typing them haha. And as always, very helpful video!

  • @wusaby-ush
    @wusaby-ush 3 ปีที่แล้ว +1

    Finally, I waited for this two days

  • @geronimostilton5057
    @geronimostilton5057 2 ปีที่แล้ว +1

    You helped me so much with this video! I was so confused about firebase syntax with their new version.

  • @tech3425
    @tech3425 2 ปีที่แล้ว +1

    Great course! Looking forward to more indepth Firebase 9 courses

  • @massimo8408
    @massimo8408 ปีที่แล้ว

    So far so good. I love your tutorials!

  • @ascodes3461
    @ascodes3461 5 หลายเดือนก่อน

    Your Voice is really nice brother 😍😍 And these tutorials are amazing!!! Keep up the good work...

  • @Loenbrad18
    @Loenbrad18 ปีที่แล้ว

    Awesome video series, going back to like the first 4 to show some love. 🤝

    • @NetNinja
      @NetNinja  ปีที่แล้ว

      Much appreciated, thanks Brady!

  • @josephmgift
    @josephmgift ปีที่แล้ว +1

    The best teacher.

    • @NetNinja
      @NetNinja  ปีที่แล้ว +1

      Thanks Joseph, hope you found it helpful!

    • @josephmgift
      @josephmgift ปีที่แล้ว +1

      @@NetNinja Of course.

  • @anasal-abood9649
    @anasal-abood9649 ปีที่แล้ว

    You are the ninja hero...

  • @SwankyMarrow212
    @SwankyMarrow212 ปีที่แล้ว +1

    'The Way of Kings' is a great book

  • @Omerko
    @Omerko 3 ปีที่แล้ว +1

    Really easy to use, even if version 9 comes with some crucial changes, it is really easy to update to it... Thanks for another video... :D

  • @hashemalsaggaf9270
    @hashemalsaggaf9270 ปีที่แล้ว

    May the force be with you

  • @NguyenThanhNhaFPLCT
    @NguyenThanhNhaFPLCT 10 หลายเดือนก่อน

    thank you, it's very helpful!

  • @nobodyeverybody8437
    @nobodyeverybody8437 ปีที่แล้ว +1

    Tanx for the tutorial, I'm just wondering, why didn't you define the "id" attribute of "input" elements? I guess the "label" element have now difficulties to find the object defined in "for" attribute.

  • @edisonmondal2798
    @edisonmondal2798 2 ปีที่แล้ว

    Sir! You have saved my life ❤❤🔥🔥🖤🖤

  • @PatrickSchubert-r4q
    @PatrickSchubert-r4q หลายเดือนก่อน

    Alle Tutorials sind bisher richtig cool! Du hättest mir aber noch sagen können, dass ich den Datenbankname (ID) im Nachhinein nicht ändern kann *lol*. Great JOB and thanks for easy entree to firebase

  • @bgrand-ch
    @bgrand-ch 3 ปีที่แล้ว

    Thanks a lot! Firebase 9 is awesome and your videos too 🤘😎

  • @Musica-zp7zn
    @Musica-zp7zn ปีที่แล้ว +3

    How do we make it delete the doc without making the user know the doc id??? Implementing just a delete button and that's all ..

  • @jesse5785
    @jesse5785 2 ปีที่แล้ว +2

    how to delete a specific document id but without writing the id but with a button click?

  • @alirezarezaei7416
    @alirezarezaei7416 2 ปีที่แล้ว

    Thanks a lot. its very useful

  • @meinkyelisee841
    @meinkyelisee841 2 ปีที่แล้ว

    Thanks for this very clear tutorial
    But please , is it the same logic for react native ?

  • @davidmendoza1477
    @davidmendoza1477 2 ปีที่แล้ว +2

    what if i want to delete a document but i dont want to have to write the id. I mean, if this was a real application then the user wouldn't have acces to that information and therefore wouldn't be able to delete the 'book' from the database. So the developer (us) has to handle that for the user. So our code needs to have access to the id of the 'book' object in our database that our UI 'book' object makes reference to. How do we do that?

  • @geebsayshi
    @geebsayshi 2 ปีที่แล้ว +1

    Can you delete a document specified by a filter or delete is only done with an ID ?

  • @jhonlee788
    @jhonlee788 2 ปีที่แล้ว

    Hello ! I wanted to know if you will make a firebase tutorial for React-Native ?
    Or is this current tutorial is easy to reapply on a react-native project ?
    Thank you in advance !

  • @abbasmohamedwalaal5753
    @abbasmohamedwalaal5753 3 ปีที่แล้ว +1

    wow very amazing

  • @dimalukashenko4865
    @dimalukashenko4865 ปีที่แล้ว

    Good lesson, thanks

    • @NetNinja
      @NetNinja  ปีที่แล้ว

      Thanks for watching Dima

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 ปีที่แล้ว +1

    Awesome Tutorial ++++++++++++++++++++ Thank You

  • @aaron_phillips
    @aaron_phillips 2 ปีที่แล้ว +2

    Hello. Trying to follow along, but I'm using Vue. Is there different syntax used for Vue? I keep getting errors when using querySelector.

  • @cubedev4838
    @cubedev4838 3 ปีที่แล้ว

    Please make firebase anlytics also

  • @zergzerg4844
    @zergzerg4844 ปีที่แล้ว +1

    Hello. I do the same thing on 5:20 but the addDoc method create duplicate data in the firestore database. WHy does your method works correctly ?

    • @zergzerg4844
      @zergzerg4844 ปีที่แล้ว

      @@DiffuserCapital I already fix it. Yes, it submitted twice.

  • @IliyaDamyanov
    @IliyaDamyanov 9 หลายเดือนก่อน

    Good video.

  • @pagevpetty
    @pagevpetty 3 ปีที่แล้ว

    Thanks for the vids! Just wondering why this example of addDoc is different from the addDoc example in your Udemy course?

  • @AnsBdran
    @AnsBdran ปีที่แล้ว

    7:00 is it possible to get a document reference by passing just the collection refecrence and the id without the db?

  • @mykoexe4135
    @mykoexe4135 3 ปีที่แล้ว

    goated content

  • @bemotivateddaily271
    @bemotivateddaily271 3 ปีที่แล้ว

    Thank you netninja thank you, am a Nigerian I have tried to join your channel with my card but it is not working, I guess I will keep on trying other cards

  • @earthycoin
    @earthycoin 2 ปีที่แล้ว

    YOu are the best!

  • @hasanuralam8403
    @hasanuralam8403 3 ปีที่แล้ว

    thanks dudu

  • @dolapoadefisayomioluwole1341
    @dolapoadefisayomioluwole1341 3 ปีที่แล้ว +1

    👍 netninja

  • @iamnate791031
    @iamnate791031 2 ปีที่แล้ว

    there's a simple question still bother me
    why we use addDoc() function , we just directly use colRef as a parameters
    but in the deleteDoc() function , we need to use doc() at first?

  • @junaidt7553
    @junaidt7553 2 ปีที่แล้ว

    thank you so much

    • @NetNinja
      @NetNinja  2 ปีที่แล้ว

      You're very welcome!

  • @Richard.halabi
    @Richard.halabi 2 ปีที่แล้ว

    the collection has an id right ?

  • @pipaliyaashish4832
    @pipaliyaashish4832 3 ปีที่แล้ว

    Any way to hide firestore credentials from source panel ( dev tools)?

  • @danielmartinezvillegas4166
    @danielmartinezvillegas4166 3 ปีที่แล้ว

    how can I split the code up in multiple files, just calling the firebase functions anywhere i need them ???

  • @Lostpanda123
    @Lostpanda123 3 ปีที่แล้ว

    Can the API Key be stored on a env. File? Or is there another way to secure the code?

    • @jondenjack
      @jondenjack 3 ปีที่แล้ว +1

      Use firebase rules
      According to the firebase docs:
      The content is considered public, including your platform-specific ID (entered in the Firebase console setup workflow) and values that are specific to your Firebase project, like your API Key, Realtime Database URL, and Storage bucket name. Given this, use security rules to protect your data and files in Realtime Database, Cloud Firestore, and Cloud Storage.

  • @Chinni0913
    @Chinni0913 2 ปีที่แล้ว

    When I add would like to store data like title and author, the database stores 2times. How can I resolve my issue?

  • @Locus.B
    @Locus.B 2 ปีที่แล้ว

    Very useful but I could use some help on the adding and deleting part because I need to make those functions in vue and don’t really know how. Can any1 help?

  • @gogouniverse9375
    @gogouniverse9375 6 หลายเดือนก่อน

    throwing an error when adding object properties in addDoc(colRef,{}),can you help how to solve

  • @anoopthomas2746
    @anoopthomas2746 2 ปีที่แล้ว

    Please say how to set uid of my user as document id .please

  • @mehtabahmad__
    @mehtabahmad__ 3 ปีที่แล้ว

    waiting for firebase in react native cli.......................

  • @zoozolplexOne
    @zoozolplexOne 2 ปีที่แล้ว

    Cool !!

  • @alexpiano
    @alexpiano 2 ปีที่แล้ว

    Any chance to use async await? I tried but I think something else needs to be configured..
    const snapshot = await getDoc(colRef);
    const books = snapshot.docs.map((doc) => ({
    //for each document we return an object with the data and the id
    ...doc.data(), //this method allows obtaining the stored data for each doc.
    id: doc.id,
    }));

    • @jannickpedersen4620
      @jannickpedersen4620 ปีที่แล้ว

      A code example of mine: const fetchPost2 = async () => {
      await getDocs(collection(db, "usercaseRight"))
      .then((querySnapshot)=>{
      const newData = querySnapshot.docs
      .map((doc) => ({...doc.data(), id:doc.id }));
      setUsercaseRight(newData);

      }
      )
      }
      useEffect(()=>{
      fetchPost2();
      }, [])
      ////////////////////////////////////////// - Then in the render


      {
      usercaseRight?.map((usercaseRight, k)=>(







      {usercaseRight.titel}

      {usercaseRight.tekst}





      ))
      }

  • @fre.helfer
    @fre.helfer 2 ปีที่แล้ว

    I love you

  • @chubbyBunny94
    @chubbyBunny94 ปีที่แล้ว

    I'm getting this error: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
    anyone got a clue?

  • @krishsitikhu1927
    @krishsitikhu1927 หลายเดือนก่อน

    hello bro i got an error when adding the data on database it doesnt add when button is click

  • @ShubhamKumar-hm8bc
    @ShubhamKumar-hm8bc 2 ปีที่แล้ว

    The delete is not working, there is no error, but the data isn't deleted at all.

  • @bblash9560
    @bblash9560 2 ปีที่แล้ว

    Sorry but why do I get a "can't find variable: document" ?

  • @manoj-k
    @manoj-k 3 ปีที่แล้ว

    🔥🔥🔥

  • @cubanezu33
    @cubanezu33 ปีที่แล้ว

    sa iti dea dumnezeu sanatate ca ne inveti ca pe prosti ce si cum! Bv.

  • @kacperkepinski4990
    @kacperkepinski4990 ปีที่แล้ว

    there is no file

  • @PsychoDude
    @PsychoDude 2 ปีที่แล้ว

    I WANT TO ADD AN ID NAME not a random

  • @ransomecode
    @ransomecode 3 ปีที่แล้ว +1

    Get Sarted with Firebase....
    😂😂

    • @ransomecode
      @ransomecode 3 ปีที่แล้ว

      please correct the title of the video!

  • @OperationAndrewDocumentaries
    @OperationAndrewDocumentaries 2 ปีที่แล้ว +1

    When I push to the database I get this issue: "core.min.js:8 POST [IP made anon]/[project made anon]/site/public/bat/rd-mailform.php 405 (Method Not Allowed)" any ideas on how I can fix

  • @agomcago
    @agomcago 2 ปีที่แล้ว

    Please how can I add pictures (or other media files) alongside other data (text)? I've been struggling with it for a while now. Got this when I tried the first time: "C:\fakepath\1.jp"

  • @Shakshi_here
    @Shakshi_here 3 หลายเดือนก่อน

    Thank You sir

    • @NetNinja
      @NetNinja  3 หลายเดือนก่อน

      Thanks for watching!

  • @atifali3485
    @atifali3485 ปีที่แล้ว

    im having problem, if i comment entire the idex.js file it performs the add and remove regardless