Closed mgallagher closed 6 years ago
We use the debug
module, so you can run export DEBUG="postgraphql:*"
(assuming bash shell) before running postgraphql to see various output. For postgres queries specifically you want DEBUG=postgraphql:postgres
; but DEBUG=postgraphql:postgres:explain
is also handy.
Excellent. Thank you @benjie! This works perfectly :)
@benjie this should be mentioned in document
@lcjnil I totally agree. Pull requests are welcome 👍
FYI: It should now be export DEBUG="postgraphile:*"
in case anyone is looking at this issue in 2018.
This is now documented here: https://www.graphile.org/postgraphile/debugging/#step-4-viewing-the-generated-sql
Forgive me if there's an answer for this somewhere, but it might be nice to have an option to show the SQL that gets sent to Postgres from PostGraphQL. Any idea how this might be done?