How to allow nullable/empty session variable #8554
Answered
by
BenoitRanque
DenisVASI9
asked this question in
Question
-
Hi all, I have a header, x-hasura-var-id. Sometimes I don't want to pass it and expect it to be treated as null or an empty string, but it gives me an error that the header is not found. Right now I'm just passing an empty string as a stub, is there a better way? |
Beta Was this translation helpful? Give feedback.
Answered by
BenoitRanque
Jun 14, 2022
Replies: 1 comment
-
Currently, if your query permissions require an environment variable not provided by your session you will face an error. If you have different users types, where some do and some don't require the variables, you should probably define them as different roles. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
seanparkross
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, if your query permissions require an environment variable not provided by your session you will face an error.
If you have different users types, where some do and some don't require the variables, you should probably define them as different roles.