You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get a batch of records from the collection by a list of input IDs. This method is used to identify records that include any of the IDs from the input list, matching the search_field.
223
+
This is using the MongoDB filter keyword $in to identify other records that include the input IDs.
224
+
params:
225
+
id_list: list
226
+
A list of IDs to get records for.
227
+
search_field: str
228
+
The field to search for. This must match a field from the NMDC Schema.
229
+
chunk_size: int
230
+
The number of IDs to get in each query. Default is 100.
# Using the DataObjectSearch class to get records from the DataObject collection. We are looking for records with the attribute 'data_object_type' equal to 'FT ICR-MS Analysis Results'.
10
+
# We want to get the first 100 records and we want to include the fields 'id', 'md5_checksum', and 'url' in the results. We also want to get all pages of results.
# Using the WorkflowExecutionSearch class to get records from the WorkflowExecution collection. We are looking for records with the attribute 'has_output' equal to the list of ids we got from the previous step.
26
+
# We use the get_batch_records method to identify records that include any of the ids from the input list, matching the 'has_output' field.
0 commit comments