wopian / kitsu

🦊 A simple, lightweight & framework agnostic JSON:API client
https://yarn.fyi/kitsu
MIT License
271 stars 42 forks source link

double filter #316

Closed tim-fastpay closed 4 years ago

tim-fastpay commented 5 years ago

how could I write this code with Kitsu?

filter[lte][postingDate]=endDate

tim-fastpay commented 5 years ago

found answer. I think that it should be on docs

        api.get('url', {
            filter: {
                lte: {
                    postingDate: endDate
                }
            }
        })
wopian commented 4 years ago

Added to Quick Start section of README in 9.0.3

patrickcate commented 3 years ago

Was this ever added to the docs?

wopian commented 3 years ago

Was this ever added to the docs?

An example for filtering (and other JSON:API parameters) was added to the Quick Start with a link to JSON:API's specification for filtering in the documentation (it's agnostic to the kind of filtering, like this package, so impossible to fully document without overburdening consumers with server-specific features that do not work with the API I use for working examples)

I've added a dedicated example for nested filters under get's documentation as it is now officially part of the JSON:API specification for filtering in 1.1