haskell-servant / haskell-servant/servant

Parsing objects in Query Parameters

Open
#1,272 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

Hi folks. Let me congratulate all of you for your hard work in this project, I really have enjoyed using it and has been really helpful :taco:.

What I would like to ask is if is there a way to parse "objects" as the example described [here](https://www.npmjs.com/package/qs#parsing-objects)?

I understand that servant ATM can use [Query Params](https://hackage.haskell.org/package/servant-0.17/docs/Servant-API-QueryParam.html#t:QueryParams) but it doesn't allow the use of "indexed" values like: `?filter[]=val&filter[]=bar` so I'm guessing something like `?filter[eq]=val` is not supported and will silently discard the parameter?

I hope this makes sense and sorry in advance because english is not my main language, thanks again for your help with this :smile:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.