Skip to content

Add batching by topic for published events #1

@andyrichardson

Description

@andyrichardson

About

Resolvers should be called with an array of events (due to batching of events).

Note: Needs exploration to see if this is necessary and/or common practice

Example

Before

{
 // ...
  resolve: (event) => {
    console.log(event) // { topic: 'MY_TOPIC', payload: {} }
  }
}

After

{
 // ...
  resolve: (events) => {
    console.log(events) // [{ topic: 'MY_TOPIC', payload: {} }]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions