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
-
Hello 👋
The
getOrganizationList
method in theOrganizationApi
currently does not support theorderBy
parameter. However, the official Clerk backend API documentation listsorder_by
as a supported parameter for listing organizations. This parameter is crucial for implementing sorted views of organizations directly from API calls.Expected Behavior
The
getOrganizationList
function in theOrganizationApi.ts
file should allow developers to specify theorderBy
parameter to sort the results based on specified fields as documented.Current Behavior
The current implementation of the
getOrganizationList
method inOrganizationApi.ts
does not expose anorderBy
parameter. The updated method signature could look like this:Beta Was this translation helpful? Give feedback.
All reactions