-
-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
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
Warn user when they pass undefined
schema in library mode
#951
Comments
Could you expand on “does not serve the UI”? Do you get an error? PostGraphile will fall back to the “public” schema if no schema is passed, this is the desired behaviour. So you should see a (empty schema’d?) GraphiQL when you visit. Seeing no GraphiQL at all is definitely unexpected, hence the request to clarify. Feel free to attach screenshot. |
@benjie right, the GraphiQL UI is not served up at all in this case. Visiting
I would also argue that while using the |
I think I agree with you, IFF the third argument is specified. Definitely an error at least. |
undefined
schema in library mode
postgraphile@next (4.3.1) is now out; please see if this is solved and report back 👍 |
I'm submitting a ...
PostGraphile version:
v4.1.0
Steps to reproduce:
Current behavior:
When using as a library (as demonstrated above), if the second argument to
postgraphile
isundefined
, the server appears to start successfully and responds to requests at/graphql
, but does not serve the UI at/graphiql
.In this case, it took me a while to realize I was not setting the
POSTGRES_SCHEMA
environment variable and that it was causing the problem.Expected behavior:
Invalid configuration should immediately throw and prevent the server from starting all together.
The text was updated successfully, but these errors were encountered: