Skip to content

Unnecessary function wrap #34

@WillSquire

Description

@WillSquire

In your examples, I believe this:

return new DataLoader<string, Account>(keys =>
      this.accountService.findByIds(keys)
)

Can be this:

return new DataLoader<string, Account>(this.accountService.findByIds)

If it's helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions