Skip to content

feat: Support disabling field/query suggestions on error#1393

Open
rschef wants to merge 1 commit intoabsinthe-graphql:mainfrom
nash-io:rafael/support-disabling-suggestions
Open

feat: Support disabling field/query suggestions on error#1393
rschef wants to merge 1 commit intoabsinthe-graphql:mainfrom
nash-io:rafael/support-disabling-suggestions

Conversation

@rschef
Copy link
Contributor

@rschef rschef commented Nov 24, 2025

Disabling schema introspection in production is common in order to reduce the API’s attack surface, but currently it's not possible to disable field/query suggestions on Absinthe, which can also be used to gain insights into the GraphQL schema.

The proposed solution is to add a maximum_number_of_suggestions option and allow disabling suggestions by setting maximum_number_of_suggestions: 0 as option.

Please let me know if you prefer a boolean field (e.g. disable_suggestion_on_error: true) or have other solutions in mind.

Thank you!

@cschiewek
Copy link
Member

I think a boolean here would be preferable, but curious as to what other folks think. cc: @absinthe-graphql/core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants