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

Error if a data context is not provided

  • Parameters

    Returns (
        personType: Readonly<{ contactType: string }>,
    ) => AsyncGenerator<Person.v1.Person, null>

    a function for getting a generator that fetches people

      • (
            personType: Readonly<{ contactType: string }>,
        ): AsyncGenerator<Person.v1.Person, null>
      • Returns a generator for fetching all people with the given type

        Parameters

        • personType: Readonly<{ contactType: string }>

          the type of people to return

        Returns AsyncGenerator<Person.v1.Person, null>

        a generator for fetching all people with the given type

        InvalidArgumentError if no type is provided or if the type is not for a person