-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Singletons #7575
Singletons #7575
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I am really looking forward to this feature. Are you able to estimate when singletons will be available in keystone? |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8424dfa:
|
…elTypeInfo in field types
038ebc8
to
768c0b5
Compare
24a89d5
to
f9c4d1d
Compare
b472b95
to
c288f6f
Compare
Replaced by #7863 |
This pull request introduces Singletons as a new feature for configuring global, editable database entries when it's not necessary to have more than one representation of the schema (aka, not a normal list).
Singletons can be useful for things like:
Before this feature, developers could write a typical schema for a list, and then using Keystone hooks limit the number of items within that list to approximate this functionality.
Unfortunately the GraphQL schema didn't reflect these constraints, and neither did the AdminUI.
This pull requests brings that functionality native to Keystone's schema configuration as a first class primitive.
Tasks