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

Don't allow schema with name = 'api'. #9413

Open
2 tasks
donquixote opened this issue Apr 26, 2024 · 1 comment
Open
2 tasks

Don't allow schema with name = 'api'. #9413

donquixote opened this issue Apr 26, 2024 · 1 comment

Comments

@donquixote
Copy link

How to Reproduce

Expected behavior

Creating a database with the name "api" should not be allowed.
Variations of this name should also not be allowed, if they lead to the same problem.

Observed behavior

On the new page we see "Validation error (FieldUndefined@[_schema]) : Field '_schema' in type 'Query' is undefined".

Obviously this can't work, because /api/* is the top-level API, whereas /$name/* is the API for a specific schema.

@donquixote
Copy link
Author

See also:

Variations of this name should also not be allowed, if they lead to the same problem.

Actually I just tried "aPi" and it seems ok.

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