We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following code:
const condominioImovelOriginal = props.data.Condominios.filter((condominio: any) => condominio.Imoveis.find((imovel: any) => imovel.Reservas.find((reserva: any) => reserva.Id == selectedReservation.Reserva.Id)) ).map((condominio: any) => { const imovel = condominio.Imoveis.find((imovel: any) => imovel.Reservas.find((reserva: any) => reserva.Id == 46630)); return { Condominio: { Id: condominio.Id, Nome: condominio.Nome }, Imovel: { Id: imovel.Id, Nome: imovel.Nome }, Reserva: selectedReservation.Reserva }; })[0];
How to use this lib in this code? I want to filter by Condominios.Imoveis.Reservas.Id === 46630
Condominios (Condominium) = Array Reservas (Reservations) = Array Imoveis (Properties) = Array
The JSON:
"Condominios": [ { "Id": 1, "Nome": "Fiore Prime", "Imoveis": [ { "Id": 1, "Nome": "A 0301", "Reservas": [ { "Id": 46630, "DataCheckIn": "2023-09-23", "DataCheckOut": "2023-09-25", "Diarias": 2, "Cliente": "Rener Lemes", "Status": "Confirmada", "StatusFinanceiro": "EmAberto" }, { "Id": 47678, "DataCheckIn": "2023-09-26", "DataCheckOut": "2023-09-29", "Diarias": 3, "Cliente": "Rener Lemes", "Status": "Confirmada", "StatusFinanceiro": "EmAberto" } ] }, { "Id": 252, "Nome": "A 0302", "Reservas": [] } ] } ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following code:
How to use this lib in this code? I want to filter by Condominios.Imoveis.Reservas.Id === 46630
Condominios (Condominium) = Array
Reservas (Reservations) = Array
Imoveis (Properties) = Array
The JSON:
The text was updated successfully, but these errors were encountered: