Skip to content

Nested objects are not omitted in a query #67

@andriiDatsiuk

Description

@andriiDatsiuk

Nested objects with falsy values are not omitted in the result query.

// input
 const input = {
   query: {
     a: {
       b: {
         c: {
           d: {
             e: false,
           },
         },
         f: {
           g: true,
         },
       },
     },
   },
 }

// output
 query {
   a {
       b {
           c {
           }
           f {
               g
           }
       }
   }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions