Full Guide to Mongo DB Realm as a Local Database for Android (Kotlin SDK)

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 59

  • @andrefilgueiras
    @andrefilgueiras Год назад +3

    Awesome video, simple and clean! Nice to have MongoDB in Android

  • @raymondmichael4987
    @raymondmichael4987 Год назад +1

    Watched till end; thanks.
    I liked your approach, you covered a lot in a very short amount of time.
    Next, enable sync on this app 😊
    Thanks buddy, keep up.

    • @StevdzaSan
      @StevdzaSan  Год назад +1

      Will think about it, thanks 🙌

  • @ohiorenuaaigboje7500
    @ohiorenuaaigboje7500 2 месяца назад

    This is very awesome. I have always found room too tedious. Thank you for this.

  • @juanadelossantos5671
    @juanadelossantos5671 Год назад +1

    What I needed! Thanks ❤️❤️

  • @yucox
    @yucox 3 месяца назад

    Huge respect and thanks for everything the king!

  • @abhijeetmule1521
    @abhijeetmule1521 Год назад +1

    Always brings something nice

  • @StevdzaSan
    @StevdzaSan  Год назад +3

    For the embedded objects (Address, Pet), instead of implementing the RealmObject interface, we need to implement EmbeddedRealmObject.

  • @yuhenteng4694
    @yuhenteng4694 Год назад +1

    very clear, thanks a lot sir😀

  • @vedx
    @vedx Год назад

    awesome as always. 🔥🔥🔥

  • @rr2r2r2ra
    @rr2r2r2ra Год назад

    hello sir, just want to ask in which order would you recommend one student in studying your kotlin courses?
    Modern Food Recipes App - Android Development with Kotlin
    Build Modern Android App with REST API and Ktor Server
    To-Do App with Jetpack Compose MVVM - Android Development
    To-Do App & Clean Architecture -Android Development - Kotlin
    Programming with Kotlin - Masterclass | Complete Course

    • @StevdzaSan
      @StevdzaSan  Год назад +1

      Hi there. First, I would take the Kotlin Masterclass to get familiar with the language itself. Then, the To-Do app with Jetpack Compose, to learn the basics of android development with jetpack compose. And then after that, the Ktor course.

  • @berthyrojasflores5497
    @berthyrojasflores5497 Год назад

    thanks for the video, a question stevdza, is your architecture pattern for the application is MVVM and if you are using daggerhilt or something similar?

  • @sebastianpalm3495
    @sebastianpalm3495 6 месяцев назад

    beauty tutorial!

  • @8bitWatermelon
    @8bitWatermelon Год назад

    This video means a lot. Thanks 🫂

    • @StevdzaSan
      @StevdzaSan  Год назад

      You're welcome buddy 😊

    • @8bitWatermelon
      @8bitWatermelon Год назад

      @@StevdzaSan also please I would like to make a request for an explanation on using Firebase real-time database for android apps. Your way teaching resonates with me and I understand better 😌. Thanks Stevdza

    • @StevdzaSan
      @StevdzaSan  Год назад +1

      @@8bitWatermelon Thank you for your suggestion, I'm planning to do one complete playlist on that topic. 🙌

    • @8bitWatermelon
      @8bitWatermelon Год назад

      @@StevdzaSan looking forward to it 🤘

  • @TarekBuhdeima
    @TarekBuhdeima Год назад +1

    Thank you , I needed this, a question though : what if i have different classes that i want to persist that have no relation to each other, should i still put them in the realm configuration builder : schema = setOf(FirstModel::class, Second::class, ... )
    or it would be different collections ? and how?
    Also i am confused by the Documentation, 1 page says we don't need to close the realm any more in kotlin SDK, another says we should.. Thank you again for the great job done!

    • @StevdzaSan
      @StevdzaSan  Год назад +1

      Hi Tarek, each class that you're creating for the purpose of persisting some data inside the realm, needs to be specified within the configuration as well, as a new collection, sure. About the second question, no you don't have to manually close the realm.

  • @raymondmichael4987
    @raymondmichael4987 Год назад

    First like first comment 🎉❤

  • @dattatreykulkarni6472
    @dattatreykulkarni6472 Год назад

    Great video. Is there any way to set the name for the database an enable deletemigration if needed

  • @galaxiegalaxie5003
    @galaxiegalaxie5003 Год назад

    Awesome nice great content, how do we do migration, is there any better approach for this , auto migration?

  • @AndrewDChristie
    @AndrewDChristie 5 месяцев назад

    Thanks!

  • @kuyangora1221
    @kuyangora1221 Год назад

    Can we avoid duplicate for example the name, in room we can use unique anotation in entity and then in dao use onStrtategy-replace, how bout in realm?

  • @learnwithsrinath
    @learnwithsrinath 10 месяцев назад

    Thanks for your best tutorial. I want to buy your course. Do you offer any discounts? Please

    • @StevdzaSan
      @StevdzaSan  10 месяцев назад +1

      My courses are already quite affordable.

  • @vjjunior_movies
    @vjjunior_movies 3 месяца назад

    Thanks bro, but I have a question, I checked the realm db docs and they mentioned about upsert, but never understood it Can you please help me on it

    • @moaliyou
      @moaliyou Месяц назад

      It's the combination of insert & update, it will update if the specified value exists and inserts if it doesn't exist

  • @andromazter8294
    @andromazter8294 Год назад

    thank you sir

  • @Settn77
    @Settn77 Год назад

    what is the use of viewmodels?

  • @sebastianseno9285
    @sebastianseno9285 Год назад

    is realm support inner join between data model ?

  • @j2ck1e
    @j2ck1e 11 месяцев назад

    Hello Sir! Can I use Realm with xml?

  • @assamesedictionary2606
    @assamesedictionary2606 11 месяцев назад

    Does Mongo DB Realm work with API level 33?

  • @PandaTop.
    @PandaTop. Год назад

    Дякую!

  • @lamineemb
    @lamineemb Год назад

    will it replace ROOM?

    • @StevdzaSan
      @StevdzaSan  Год назад +1

      Nah, it's not about replacement but choice instead 😊

  • @name1566
    @name1566 Год назад +1

    Damn Damn God is Here.........
    Please Make a little useful project with MongoDB

    • @StevdzaSan
      @StevdzaSan  Год назад

      I have a full course for that.

    • @name1566
      @name1566 Год назад

      @@StevdzaSan paid course?

    • @name1566
      @name1566 Год назад

      @@StevdzaSan Hey please tell where I can find that

    • @StevdzaSan
      @StevdzaSan  Год назад

      @@name1566 First link in the video description down below.

  • @USS_Daedalus
    @USS_Daedalus Год назад

    Can it Save Pictures?

    • @StevdzaSan
      @StevdzaSan  Год назад

      No files. But you can upload images to Firebase, and just store their url's inside. That's what I teach in my new course. Link in the video description.

    • @USS_Daedalus
      @USS_Daedalus Год назад

      @@StevdzaSan Yeah i know that. Bought it.
      So maybe extra Room Database for Picture only? Like Local with Mongo DB and Room

  • @jopadjr
    @jopadjr Год назад

    31st...Thanks

  • @PandaTop.
    @PandaTop. Год назад

    Why does it return null? I saved Person to DB and I want to get Person
    But I check id and data is not empty
    override suspend fun getContact(id: String): Person? {
    val person = realm.query(query = "id == $0", ObjectId(id)).first().find()
    return person?.toPerson()
    }

    • @StevdzaSan
      @StevdzaSan  Год назад

      Check my repository and compare the code with yours.

    • @PandaTop.
      @PandaTop. Год назад

      @@StevdzaSan You have no way to return only one object, only lists (they work correctly for me, by the way). In the official documentation, it is written that in order to return one object by id, you need to do the following:
      val frogs: Frog? = realm.query("_id == $0", PRIMARY_KEY_VALUE).first().find()
      I do so...

    • @StevdzaSan
      @StevdzaSan  Год назад

      @@PandaTop. ObjectId.from(ID)

  • @user-qu6kt4ve1u
    @user-qu6kt4ve1u 10 месяцев назад

    🙏🙏🙏🙏🙏💥🐥🥺

  • @atomykgaming6082
    @atomykgaming6082 Год назад

    I really wanted to learn realm from you @stevdza 😞 but i don't have enough money to buy this course

  • @masseyfuruta
    @masseyfuruta Год назад

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie Год назад

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie Год назад

    Thanks!

    • @StevdzaSan
      @StevdzaSan  Год назад

      Thanks man, I really appreciate it. :)