0

firestoredatabase

Hi! i want to get data from an array of boolean from my firestore data base, if i run this code:

 Log.d("firestore", String.valueOf(document.getData()));

I get this result:

{nombre=AVL, boolArray=[true, false, false]}

2 Answers 2

0

document.get("boolArray") should return a List<Boolean> type object.

Sign up to request clarification or add additional context in comments.

Comments

0

document.getData() will return a Map which in term contains two other maps. In the first case, the value is of type String while in the second case, the value is an Array. But if you are using document.get("boolArray"), as Doug said, even if we know that data is stored as an array, the data is returned as a List<Boolean>.

If you want to read more, you can also see my answer from this post.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.