How to use LIKE in react-firestore?

240 Views Asked by At

I can't figure out how to use the LIKE operator on Firestore with React-redux-firebase.

I would like something similar to this:

Select * from countries where name LIKE %xico% //RESULT = Mexico

I tried the following:

import { firestoreConnect } from 'react-redux-firebase'

var name = 'xico'

export default compose(
  connect(mapStateToProps),firestoreConnect([{ collection : 'countries', orderBy :'name',startAt:name,endAt:name+'\uf8ff'}]) 
)(Dashboard);

But, it does not work.

0

There are 0 best solutions below