Hi everyone, I would like to have your opinion about an issue with Firebase Database, I already query the table "ordenes" using "=" operator, however I would like to use the "in" operator, I checked documentation, it says it is posible, I also make some check using the Firebase console. I got stuck in preparing the array parametr for the query, here is my code, I tried to create an array but it is not ok. At the end I included the google documentation.
Thanks in advance for your help
in operator
Thanks in advance for your help
Subroutine for queri:
Sub verificar_pedido_globe_array
gs_buscar_coleccion = "ordenes"
Dim mapa As Map
mapa.Initialize
Dim data As List
data.Initialize
data.Add(CreateMap("collectionId":"ordenes"))
Dim mapafiltro As Map
mapafiltro.Initialize
mapafiltro.Put("field",CreateMap("fieldPath":"NO_PEDIDO")) ' name field
mapafiltro.Put("op","in") 'Operator In'
' I got a error message about malformed Json, I tried this way, but it is wrong,
mapafiltro.Put("value",Array(CreateMap("stringValue":"9364E7CE"),CreateMap("stringValue":"9364E7CE")))
mapa.Put("from",data)
mapa.Put("where",CreateMap("fieldFilter":mapafiltro))
query (mapa)
End Sub
in operator
Last edited: