GoogleWebComponents / firebase-element

Web components for the Firebase Web API
https://elements.polymer-project.org/elements/firebase-element
95 stars 72 forks source link

Combining orderByValue with equalTo for booleans does not work #140

Closed mm-gmbd closed 8 years ago

mm-gmbd commented 8 years ago

Similar to https://github.com/GoogleWebComponents/firebase-element/issues/89, but for booleans rather than numbers. Setting the orderByValueType to boolean did not work.

<firebase-collection
  location=[[_computeLocation(...)]]
  data={{fbData}}
  order-by-value
  equal-to="false"
  order-by-value-type="boolean">
</firebase-collection>

The records at the computed location are a collection of key-value pairs where the values are booleans. Regardless if I use true/false in the equal-to, no data is returned. However, if I remove order-by-value, equal-to, and order-by-value-type, I get all records at that location.

mm-gmbd commented 8 years ago

Probably because orderByValueType should be orderValueType. Oops.