Skip to content

transformResult #46

@fratzinger

Description

@fratzinger

I've an app with customers and orders. In my frontend I've a table with customers and a column with ordersCount. I would like to populate that with graph-populate. So dynamically populate a number to an item.
A possible way would be:

ordersCount: {
    service: 'orders',
    nameAs: 'ordersCount',
    params: { query: { limit: 0 }, paginate: true }
    transformResult: (item, context) => item.total
  },

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