PokemonTCG / pokemon-tcg-api

Pokemon TCG API allows developers to easily consume Pokemon card and set data in JSON format.
61 stars 3 forks source link

Cannot query for zero retreatCost #73

Closed butterEbrett closed 6 years ago

butterEbrett commented 6 years ago

Cards with no retreat cost do not have a retreatCost attribute. The logic for querying against it doesn't seem to take NULL values into account. No results are returned in either of these scenarios:

~/cards?retreatCost=0 ~/cards?retreatCost=lt1 (less than 1)

adback03 commented 6 years ago

You can now do /cards?convertedRetreatCost=0

The gt, lt, gte and lte filters are also supported for this field.