←back to thread

84 points mkalioby | 1 comments | | HN request time: 0.242s | source
Show context
graup ◴[] No.42193140[source]

    {'name__contains':"k", "age__lt":20}
Kind of tangential to this package, but I've always loved this filter query syntax. Does it have a name?

I first encountered it in Django ORM, and then in DRF, which has them as URL query params. I have recently built a parser for this in Javascript to use it on the frontend. Does anyone know any JS libraries that make working with this easy? I'm thinking parsing and offering some kind of database-agnostic marshaling API. (If not, I might have to open-source my own code!)

replies(1): >>42197135 #
Daishiman ◴[] No.42197135[source]
I think its first usage really was in Django. I've always referred to it as the Django ORM query notation.
replies(1): >>42201118 #
1. mkalioby ◴[] No.42201118[source]
As also a Django Developer for 10+ years. That is why I felt that Python needs something like this.