I am using Datastore in Firestore mode for my Google App Engine app. I know how to store list/array property values in the Google Cloud Datastore. But how do I update these values (ex: add new values to the list?) I could not find an example in the documentation.
This is how you would add a list property to the datastore initially:
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Entity user = new Entity("User");
List<String> items = new ArrayList<String>();
user.setProperty("ItemsList", items);
datastore.put(user);
But what do I do if later on, I want to access an User entity's list of items and add an item to that list?