Are introspection queries protected/protectable?

https://dgraph.io/docs/learn/developer/react/graphql/graphql-operations/#introspection

i.e. Can I configure Dgraph to disallow introspection queries from the outside, i.e. I only want introspection to be allowed when using Dgraph in dev, not in prod.

We are also trying to acheive the same, but haven’t found the doc useful as the suggested way is not working
–graphql introspection=false

1 Like

working solution command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --security whitelist=0.0.0.0/0 --graphql "debug=true;introspection=false;extensions=true;lambda-url=http://dgraph_lambda:8686/graphql-worker;

1 Like