26 Matching Annotations
  1. Oct 2022
    1. Supabase is an open source Firebase alternative. Start your project with a Postgres database, Authentication, instant APIs, Edge Functions, Realtime subscriptions, and Storage.

      https://supabase.com/


      Found as presumably it's being used by https://www.explainpaper.com/ with improper configurations

  2. Feb 2022
    1. Custom objects

      Are you getting an error along the lines of cityConverter is not a function ?

      Dont miss a single ; ( semicolon ) especially after the cityConverter object, this should solve your problem. It is a simple JS parsing problem, nothing related with Firestore or your understanding of Firestore

  3. Nov 2021
    1. doc()

      Cannot wrap your head around the arguments that this function takes ? read this first. https://firebase.google.com/docs/firestore/data-model

      read the "References part" from this article

  4. Oct 2020
    1. Emulating TypeScript functions

      YEah, but you've also got to watch the source files to recomp0ile on changes....

      "serve": "tsc -w | firebase emulators:start --only functions",
      

      Modified and functionally watching my stuff

  5. Sep 2020
  6. Jul 2020
    1. only the @firebase/testing Node.js module supports mocking auth in Security Rules, making unit tests much easier
    1. There's not a way to do this. What you could do instead is use Cloud Functions HTTP triggers as an API for writing data. It could check the conditions you want, then return a response that indicates what's wrong with the data the client is trying to write. I understand this is far from ideal, but it might be the best option you have right now

      it's definitely far from ideal :(

  7. Jun 2020
    1. You can use any Firebase Database URL as a REST endpoint. All you need to do is append .json to the end of the URL and send a request
    1. The section of code with exports.app = functions.https.onRequest(app); exposes your express application so that it can be accessed. If you don't have the exports section, your application won't start correctly
    2. we’re going to use cloud firestore because it’s easier to work with and more versatile
    3. Firebase Functions enables you to use the ExpressJS library to host a Serverless API. Serverless is just a term for a system that runs without physical servers. This is a bit of a misnomer because it technically does run on a server, however, you’re letting the provider handle the hosting aspect
  8. May 2020
    1. take care that your Dynamic Link URLs don't conflict with your web URLs. When you configure Dynamic Links to use a particular URL prefix, all URLs that begin with that prefix are treated as Dynamic Links, so you can't use URLs with that prefix to point to ordinary hosted content
  9. Oct 2019
    1. When using account linking it is important to be aware that some limitations exist. First, only two accounts can participate in a link. If an attempt is made to link to an account which is already linked, the new link will replace the original link. It is also not possible to link two accounts associated with the same authentication provider. While a Facebook account may be linked with a Google account, for example, it is not possible to link two Google provider based accounts. An attempt to link accounts from the same provider will result in an exception containing a message which reads as follows: User has already been linked to the given provider. Account linking can only be performed at the point at which a new account is created. It is not possible, in other words, to link two pre-existing accounts. A workaround to this limitation is to delete one of the two accounts and then establish the link while re-creating the account

      so user cannot have 2 phone numbers or 2 emails :( :(

    1. recommend using Firebase when the API calls involve any user data and the API is intended to be used in flows where the user has an user interface
  10. Aug 2019
  11. Jul 2019
    1. Firebase Vs MongoDB : Battle of the Best Databases 2019You are here:HomeDev & DesignFirebase Vs MongoDB : Battle…

      Now that you may have found that NoSQL database is the best option for you to set up your servers, you must find the best NoSQL database. Likewise, there are two prominent candidates for you to choose from Firebase Vs MongoDB.

  12. Mar 2019
  13. Dec 2018
    1. To return data after an asynchronous operation, return a promise.

      I just struggled for a few hours trying to resolve some errors about CORS and 500 INTERNAL errors.

      This line is a bit misleading.

      In trying to get things up and running, I was returning a simple JSON object rather than a Promise. According to what I found, even if you don't have any async work, you still need to return a Promise from your function.

  14. Nov 2018
  15. Dec 2017
    1. You can use the value event to read a static snapshot of the contents at a given path, as they existed at the time of the event. This method is triggered once when the listener is attached and again every time the data, including children, changes. The event callback is passed a snapshot containing all data at that location, including child data.

      So adding a ref too close to the root means the entire snapshop is sent, not just the diff