0

Below is an example of the data that I have within my Firestore Application.

enter image description here

I am looking to update the "prices" object using python, is this a possibility? I am finding it increasingly hard to get all the way to the data.

I don't want you to code this for me, i'm merly asking if it is possible and just some quick guidance on how to achieve it.

My api will fetch prices, then find the "ID" of the specific conditions which is stored in the "id" field within the condtion array, if will then update the "prices" object of that found id.

Like I said, is this possible? And a few pointers on how to achieve this would be great!

Kind Regards, Josh

1 Answer 1

1

Updating just one field of an array item is not possible.

The most you could do would be to update only an entire array item. You can do this with arrayRemove() and arrayUnion(). More info in the docs

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

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.