Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kingstinct/react-native-healthkit/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Query options types provide flexible filtering, pagination, and sorting capabilities for HealthKit data queries. These types allow you to specify date ranges, metadata filters, sample limits, and sort orders.GenericQueryOptions
Base interface for all query options.Filter criteria for samples. See FilterForSamples for details.
Maximum number of samples to return. Specify -1, 0, or any non-positive number to fetch all samples.
QueryOptionsWithAnchor
Query options with anchor-based pagination support.Pagination anchor from a previous query result. Used to fetch the next batch of results.
QueryOptionsWithSortOrder
Query options with sort order control.Sort order for results.
true for ascending (oldest first), false for descending (newest first).QueryOptionsWithSortOrderAndUnit
Query options with sort order and unit specification.QueryOptionsWithAnchorAndUnit
Query options with anchor-based pagination and unit specification.FilterForSamples
Comprehensive filter criteria for HealthKit samples.Filter by specific data sources.
Array of filter conditions where at least one must match.
Array of filter conditions that must not match.
Array of filter conditions that all must match.
FilterForSamplesBase
Base filter criteria for samples.Filter by a specific sample UUID.
Filter by multiple sample UUIDs.
Filter by metadata key-value pairs. See PredicateWithMetadataKey.
Filter by date range. See DateFilter.
Filter samples associated with a specific workout.
Filter by data sources.
DateFilter
Filter samples by date range.Start of the date range (inclusive by default).
End of the date range (inclusive by default).
When
true, samples must end before the endDate (exclusive).When
true, samples must start after the startDate (exclusive).PredicateWithMetadataKey
Filter by metadata key-value pairs with comparison operators.The metadata key to filter by.
Comparison operator for the filter. See ComparisonPredicateOperator.
The value to compare against.
ComparisonPredicateOperator
Comparison operators for metadata filtering.Numeric Comparisons
lessThan- Value is less than the specified valuelessThanOrEqualTo- Value is less than or equal to the specified valuegreaterThan- Value is greater than the specified valuegreaterThanOrEqualTo- Value is greater than or equal to the specified valueequalTo- Value equals the specified valuenotEqualTo- Value does not equal the specified value
String Comparisons
matches- String matches a regular expression patternlike- String matches a pattern with wildcardsbeginsWith- String begins with the specified valueendsWith- String ends with the specified valuecontains- String contains the specified value
Collection Comparisons
IN- Value is in the specified collectionbetween- Value is between two specified values
Advanced
customSelector- Use a custom selector for comparison