I have following structure in firebase data
Orders -> OrderID -> LocationHistory -> LocationHistoryID -> FieldsData
Orders and LocationHistory are constant whereas OrderID ,LocationHistoryID are document ID
I want to know if it is possible to generate a query to get all LocationHistory of an order in repository which extends FirestoreReactiveRepository in rest it whould be /Orders/10002/LocationHistory/
Belwo is the code i am currently using
import org.springframework.cloud.gcp.data.firestore.Document;
import com.google.cloud.firestore.annotation.DocumentId;
import com.google.cloud.firestore.annotation.PropertyName;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
@Document(collectionName = "Orders/10002/LocationHistory")
public class LocationHistory
{
@DocumentId
private String id;
private String lat;
@PropertyName("long")
private String longitude;
}