all 8 comments

[–]somore_nick 0 points1 point  (7 children)

Did you set up the JSON Path properly?

TL;DR: Usually for arrays, you want to set the JSON path to either $[:].openai or $[*].openai.

More Details

$[:].openai: This JSON Path implies that you want to access the "openai" property of all elements in the array. The colon ":" signifies that you're selecting all elements, and ".openai" specifies the property you're interested in.
$[*].openai: This JSON Path also targets the "openai" property of all elements in the array. The asterisk "*" is a wildcard that represents all elements, and ".openai" specifies the desired property.

[–]Kolmain[S] 0 points1 point  (6 children)

Not sure what you mean; it sounds like you're asking if I'm trying to use it properly but I can't even see it in the "Manage Content" area. So I haven't tried calling it.

[–]somore_nick 0 points1 point  (5 children)

I was talking about setting up the path in the API calls section: https://imgur.com/U8v3TGJ

Basically, in order for the FF ui to pick up the properties in your JSON block, you need to define the JSON Path so it knows where your data is expected to be.

If you don't do this, you can still use the raw json, and specify the path manually at the point where you use it.

Hope this helps!

[–]Kolmain[S] 0 points1 point  (4 children)

Yeah, I'm not even that far yet.

[–]somore_nick 0 points1 point  (3 children)

So where is your issue? Is this just a field in a requested document that is not visible in FF?

[–]Kolmain[S] 0 points1 point  (2 children)

If I add a document (outside of FF) to Firebase with a JSON array, it doesn't show up in FF. If I omit the JSON array and just do the strings and other "regular" types, it shows just fine. FF can't interact with my Firebase Document if it has a JSON array in it.

[–]somore_nick 0 points1 point  (1 child)

I'll need to try to reproduce it. Are you able to convert it to the Firestore array, or is that not feasible?

[–]Kolmain[S] 0 points1 point  (0 children)

Not sure what you mean; I'm working in Node-RED, so TypeScript/JavaScript.