Skip to content

[Question] Sort by relationship attributes? #359

Closed
@RKennedy9064

Description

@RKennedy9064

I've been working with JsonApiDotNetCore and EmberJS for a bit and everything has been working well so far, but I've run into something that I can't seem to find the answer for, so I figured I'd post here. On the JsonApi website it says

Note: It is recommended that dot-separated (U+002E FULL-STOP, “.”) sort fields be used to request sorting based upon relationship attributes. For example, a sort field of author.name could be used to request that the primary data be sorted based upon the name attribute of the author relationship.

Does JsonApiDotNetCore currently support this, or does it plan to in the future? I didn't see anything on the documentation related to this and I have some models that I'd like to be able to sort by using the relationship values. If it isn't currently supported, do you have any advice on how it might be possible to get it working in the current build? Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions