Skip to content
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

List of available fields shown when used an invalid one #256

Open
AntoineLemaire opened this issue Jun 17, 2024 · 0 comments
Open

List of available fields shown when used an invalid one #256

AntoineLemaire opened this issue Jun 17, 2024 · 0 comments

Comments

@AntoineLemaire
Copy link

When we use a field that does not exist, it display the full list of available fields.

throw new ResolveException(sprintf('Field "%s" not found in type "%s". Available fields are: %s', $ast->getName(), $objectType->getNamedType()->getName(), $availableFieldNames), $ast->getLocation());

But it seems to be not very secured. And I don't see any way to avoid this. Am I wrong? The only way I have was to fork and remove it, but do you think it's normal to have the full list?

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

No branches or pull requests

1 participant