Class HasDocument
java.lang.Object
io.fluxcapacitor.common.api.Request
io.fluxcapacitor.common.api.search.HasDocument
- All Implemented Interfaces:
JsonType
A request to check whether a document exists in a given collection.
This is a lightweight operation used to determine the presence of a document based on its identifier and the collection it belongs to without having to fetch the document.
Example usage:
boolean exists = searchClient.documentExists(new HasDocument("invoice-1234", "invoices"));
- See Also:
-
Constructor Details
-
HasDocument
public HasDocument()
-