Some questions regarding firebaseDB

Hello everyone. Today I am making a social network (sort of) app for an upcoming TV show of mine, but there are a few issues.
I know this question is a bit beginner like, I have never used FirebaseDB component in AI2 before, but I have past experience in using it in web apps.
So, I have 2 questions (for now):

  1. How do I get a proper list? It doesn't show a properly rendered list.
    Blocks:

I am trying to get all data from Posts tag

image

It should show the child keys (example: hi) from the posts tag.
My code shows in first list item: ["hi
And in second one: {title: "\"hi"\"} or something like that...

I want the list item only 1 for now, and that should say hi, instead of list and JSON characters.

  1. How do I remove extra quotations from the value?
    It should contain "hi" instead of ""hi"", you can see in the posts/hi tag it says title ""hi"" instead of title "hi".
    What can I do? Searching didn't help me that great.

Thank you :slight_smile:

The firebase component write (and read) with that format. You can use web component like alternative.

1 Like

Anyway, if you are still interested in using the firebase component, it would look something like this:

1 Like

That helps and I will use that solution in the post viewing code, but I wanted to get the keys of the tag 'Posts' only :slight_smile: ...
So that is priority in thr app for now...

image

1 Like

That worked like a charm! Thank you Ramon!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.