Skip to content

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

Description

@AntoineLemaire

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions