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?
When you set a key's value to
nullin Fauna, it is removed from the object. In your example, assumingrefis a valid Reference:will remove the key
"2"and its associated value from the object, leaving you with: