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

Supporting the Schema Definition Language (SDL) for list config #300

Closed
molomby opened this issue Sep 11, 2018 · 1 comment
Closed

Supporting the Schema Definition Language (SDL) for list config #300

molomby opened this issue Sep 11, 2018 · 1 comment

Comments

@molomby
Copy link
Member

molomby commented Sep 11, 2018

The SDL was developed initial by Graphcool but has since been canonised into the GraphQL spec. It provides a way of defining the types and relationships present in a GraphQL schema. This is similar to the role filled by list config in the Keystone ecosystem.

The idea here is to support reading SDL-based lists in on Keystone init, possibly with an "escape hatch" that code gens JS list config. Having a text-based list config format is limiting in some ways (eg. hook syntax? access control needs to be "graphQL-query" based?) but opens the door to dynamical list config changes. Eg, storing list config in the DB and allowing user edit-ability (ie. edit the list config in the Admin UI and reload it) and/or in-app list config versioning.

Other text-based list definition formats (eg. JSON?) could also facilitate this.

@molomby molomby added this to the M5: Later milestone Sep 11, 2018
@jesstelford
Copy link
Contributor

SDL provides only a subset of the features now available when instantiating a keystone instance.

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

2 participants