We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
given the following pgSettings:
pgSettings: req => ({ 'user.user_id': req.ctx.session.user_id || '' })
I expect the following:
when req.ctx.session.user_id === null to set user.user_id to expected: "" or null actual: "null"
req.ctx.session.user_id === null
user.user_id
""
null
"null"
when req.ctx.session.user_id === undefined to set user.user_id to expected: "" or null actual: "undefined"
req.ctx.session.user_id === undefined
"undefined"
The text was updated successfully, but these errors were encountered:
Suggestion: strings and numbers should be passed through, null/undefined should be dropped, and everything else should throw an error.
Sorry, something went wrong.
@benjie if I was to make a PR for this, which branch or repo should I work in?
Master; I'll then merge into v3 and v4
Specifically you want to extract this line and add slightly more logic:
https://github.com/postgraphql/postgraphql/blob/master/src/postgraphql/http/createPostGraphQLHttpRequestHandler.js#L404
No branches or pull requests
given the following pgSettings:
I expect the following:
when
req.ctx.session.user_id === null
to setuser.user_id
toexpected:
""
ornull
actual:
"null"
when
req.ctx.session.user_id === undefined
to setuser.user_id
toexpected:
""
ornull
actual:
"undefined"
The text was updated successfully, but these errors were encountered: