Add orderBy parameter support to getOrganizationList in OrganizationApi #3152
Closed
mario-jerkovic
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
|
Hey, @mario-jerkovic! I've opened a PR for it: #3164 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
The
getOrganizationListmethod in theOrganizationApicurrently does not support theorderByparameter. However, the official Clerk backend API documentation listsorder_byas a supported parameter for listing organizations. This parameter is crucial for implementing sorted views of organizations directly from API calls.Expected Behavior
The
getOrganizationListfunction in theOrganizationApi.tsfile should allow developers to specify theorderByparameter to sort the results based on specified fields as documented.Current Behavior
The current implementation of the
getOrganizationListmethod inOrganizationApi.tsdoes not expose anorderByparameter. The updated method signature could look like this:Beta Was this translation helpful? Give feedback.
All reactions