Skip to content

Option to access context from makeAddPgTableOrderByPlugin #2568

Open
@hos

Description

@hos

Feature description

When adding order by plugin using makeAddPgTableOrderByPlugin, we call steps other than the one passed as first argument to the orderByAscDesc.

Motivating example

We access locale from the context().get('locale') to translate some resources and we need to order by the translation not the original value.

Here is an example of usage
https://github.com/hos/ouch-my-finger/tree/cant-access-steps-in-order-by-plugin

Breaking changes

Supporting development

I [tick all that apply]:

  • am interested in building this feature myself
  • am interested in collaborating on building this feature
  • am willing to help testing this feature before it's released
  • am willing to write a test-driven test suite for this feature (before it exists)
  • am a Graphile sponsor ❤️
  • have an active support or consultancy contract with Graphile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🌳 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions