I'm looking for way how to query in datastore by list of properties.
So, i have a simple Entity:
@Data
@Entity(name = APPLICATION_KIND)
public class ApplicationEntity {
@Id
private String Id;
private String appId;
private String name;
private String status;
}
i would like to do lookup by list of appIds
. However, seems Datastore doesn't provide such possibility.
DatastoreTemplate
provides only one possibility - findAllById
but it doesn't work neither for other fields nor along with other filters (e.g. by status).
Unfortunately, StructuredQuery.PropertyFilter
doesn't provide such possibility as well.
StructuredQuery.CompositeFilter
has only and
but doesn't have neither or
nor in
.
Probably someone faced with the same issue and workaround it somehow?