FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

$sort from querySyntax function in @feathersjs/typebox does not consider the extensions param, so can't sort on extensions · Issue #3526 · feathersjs/feathers · GitHub

$sort from querySyntax function in @feathersjs/typebox does not consider the extensions param, so can't sort on extensions #3526

Description

Steps to reproduce

(First please check that this issue is not already solved as described
here
- if it is a general question or suggestion please start a Discussion)

  • Tell us what broke. The more detailed the better.
    I tried to add a nested sort field to the extensions for query synatx and it wouldn't work, I dug into the source code and saw that extensions are not considered, I'm not sure if this is expected behaviour or not?

  • If you can, please create a simple example that reproduces the issue and link to a gist, jrepo, etc. This makes it much easier for us to debug and issues that have a reproducible example will get higher priority.

I managed to solve it for my case by passing in an intersect type as the main argument:

Expected behavior

Tell us what should happen

Ideally, it would be great if the properties passed in as extensions could be used on the $sort as well as the $select

Actual behavior

These properties are currently ignored
Tell us what happens instead

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):
"@feathersjs/typebox": "^5.0.29"

NodeJS version:
v20.14.0

Operating System:
MacOS

Browser Version:
N/A

React Native Version:
N/A

Module Loader:
npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL