Skip to content

Instantly share code, notes, and snippets.

@esatterwhite
Last active October 1, 2023 03:21
Show Gist options
  • Save esatterwhite/dcdba9fa1ca06d8045fe9bfff0f62b33 to your computer and use it in GitHub Desktop.
Save esatterwhite/dcdba9fa1ca06d8045fe9bfff0f62b33 to your computer and use it in GitHub Desktop.
possible input / output jsonb aggregate
// inputs
{
"a" : {
"b": {
"c": true
}
}
}
{
"a" : {
"b": {
"c": false
}
}
}
{
"a" : {
"b": {
"d": true
}
}
}
{
"a" : {
"b": {
"e": true
}
}
}
{
"a" : {
"c": {
"f": true
}
}
}
// results
{
"a" : {
"b": {
"c": false,
"d": true,
"e": true
},
"c": {
"f": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment