@medic/cht-datasource
    Preparing search index...

    Function getAll

    • Returns a function for getting a generator that fetches contacts from the given data context.

      Parameters

      Returns (
          qualifier:
              | Readonly<{ ids: string[] }>
              | Readonly<{ contactType: string }>,
      ) => AsyncGenerator<Contact.v1.Contact, null>

      a function for getting a generator that fetches contacts

        • (
              qualifier:
                  | Readonly<{ ids: string[] }>
                  | Readonly<{ contactType: string }>,
          ): AsyncGenerator<Contact.v1.Contact, null>
        • Returns a generator for fetching all contacts that match the given qualifier.

          Parameters

          • qualifier: Readonly<{ ids: string[] }> | Readonly<{ contactType: string }>

            the limiter defining which contacts to return (a contact type or a set of UUIDs)

          Returns AsyncGenerator<Contact.v1.Contact, null>

          a generator for fetching all contacts that match the given qualifier

          InvalidArgumentError if no qualifier is provided or if the qualifier is invalid

      Error if a data context is not provided