Find objects in the NMDC schema
NmdcClient-find.RdRetrieve a data frame of objects of the specified class from the NMDC schema.
client <- NmdcClient$new()
client$find(cls, query = list(a = NULL)[-1], fields = NULL, limit = NULL)Arguments
- cls
The class type or collection of the objects to retrieve. Must be a subclass of `nmdcr::NamedThing` or the name of a NMDC database collection.
- query
A list representing the query to filter the objects. Defaults to NULL which returns all objects.
- fields
A list of fields to include in the result. Defaults to NULL which returns all fields.
- limit
The maximum number of objects to retrieve. Defaults to NULL which retrieves all matching objects.