Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
Remove a child object in Fauna DB

I need to remove a child object in FQL. Let me demonstrate with the following example:

{
    "1": {
        "name": "test"
    },
    "2": {
        "name": "test2"
    }
}

And I want this JSON to look like this:

{
    "1": {
        "name": "test"
    }
}

Is there an FQL function that could help me?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

When you set a key's value to null in Fauna, it is removed from the object. In your example, assuming ref is a valid Reference:

Update(ref, { "2": null })

will remove the key "2" and its associated value from the object, leaving you with:

{ "1": { "name": "test" } }
about 4 years ago · Juan Pablo Isaza Denunciar

0

For a bare object, you can use the Merge function to remove object keys by setting their value to null:

> Merge({"1": { "name": "test" }, "2": { "name": "test2" }}, { "2": null })
{ '1': { name: 'test' } }
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda