Function applyOrderAndPaging

  • Applies query order and paging based off GraphQL mutation arguments.

    TODO: Should query by a GraphTraversal type or similar?

    Returns

    • Query object with order and paging applied.

    Parameters

    • query: any

      Query object.

    • args: object

      Mutation arguments.

    • Optional orderByProperty: string

      The property name that we are to order on

    • Optional orderBy: FilterOrderDirection

      The order to order by ASC / DESC

    Returns any

Generated using TypeDoc