View Source ExPersona.Inquiry (ex_persona v1.0.1)

Module for dealing with inquiries.

Link to this section Summary

Functions

Get a specific ExPersona.Inquiry.

Get a list of all document ids referenced in this ExPersona.Inquiry.

Get a list of ExPersona.Inquirys.

Link to this section Types

@type t() :: %ExPersona.Inquiry{data: map(), id: String.t(), included: map() | nil}

Link to this section Functions

Get a specific ExPersona.Inquiry.

Link to this function

get_document_ids(inquiry)

View Source
@spec get_document_ids(t()) :: [String.t()]

Get a list of all document ids referenced in this ExPersona.Inquiry.

@spec list() :: ExPersona.Client.Operation.t()

Get a list of ExPersona.Inquirys.

If passed to ExPersona.request!/1 it will return only the first results from the list. You can create a Stream to paginate over all results by calling ExPersona.stream!/1.

For instance:

 # get 400 inquiries
 ExPersona.Inquiry.list()
 |> ExPersona.stream!()
 |> Stream.take(400)
 |> Enum.to_list()
 |> IO.inspect()