import { EnumType , jsonToGraphQLQuery , VariableType , } from 'json-to-graphql-query' ; export { EnumType , VariableType , jsonToGraphQLQuery } ; export function objToScapedJSONString ( obj ) { return obj ? `"${ JSON . stringify ( obj ) . replace ( /"/g , '\\"' ) }"` : null ; } export function removeUndefinedFields ( obj ) { return Object . keys ( obj ) . reduce ( ( result , key ) => typeof obj [ key ] === 'undefined' ? result : { ... result , [ key ] : obj [ key ] } , { } ) ; }