Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing Multiple GUIDs in Query String as List Parameter #1446

Closed
abhinavchauhan12 opened this issue Jan 30, 2024 · 1 comment
Closed

Passing Multiple GUIDs in Query String as List Parameter #1446

abhinavchauhan12 opened this issue Jan 30, 2024 · 1 comment
Labels

Comments

@abhinavchauhan12
Copy link

I have a attribute List<Guid> Ids; in my resource . How to pass the Ids in filter[Ids] such that I could retrieve my Ids from query layer ?

Because , I have used the below endpoint :-
https://localhost:7004/test/?filter[Ids]=d06eb7db-43ff-4c47-8714-f364bcc07e0b,6c23191b-48cb-4e9a-bcad-2783105898fe
but faced the below error :-

"status": "400",
            "title": "The specified filter is invalid.",
            "detail": "Failed to convert 'd06eb7db-43ff-4c47-8714-f364bcc07e0b' of type 'String' to type 'List`1'.",
            "source": {
                "parameter": "filter[Ids]"
            }
@bkoelman
Copy link
Member

This is currently not possible. There's a workaround at #1370 (comment) by storing your list as a separated string. Adding support for filtering inside non-primive objects (including collections) is tracked at #1439.

Closing as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants