atulmy/gql-query-builder

incorrect checks for an object-like value

Opened this issue · 1 comments

throughout the code there are checks like;

const value = typeof variable === "object" ? variable.value : variable;

however, typeof will also result in "object" if value is null
in which case the above code will simply fail

I'm considering making a PR in a few days to address this issue

@thealjey thanks for identifying the issue. Looking forward to the PR.