A class to iterate through to a Fauna event feed.

Type Parameters

Constructors

Methods

  • Returns an async generator that yields the events of the event feed directly.

    Returns AsyncGenerator<StreamEventData<T>, any, unknown>

     const feed = client.feed(fql`MyCollection.all().eventSource()`)

    for await (const user of feed.flatten()) {
    // do something with each event
    }