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

Notes and Roadmap #1

Open
padarom opened this issue Jun 14, 2018 · 0 comments
Open

Notes and Roadmap #1

padarom opened this issue Jun 14, 2018 · 0 comments

Comments

@padarom
Copy link

padarom commented Jun 14, 2018

Just some quick notes so we can remember our exact plans for this bundle.

Automatic ObjectType generation

Our goal is to have all database fields accessible by default. As such we need to automatically generate an ObjectType for each database table.

A single Generator object is used to generate an ObjectType for each table. The exact method of generating the ObjectType, its corresponding arguments and its field resolvers can be further customized with a Resolver class. Any table that is not linked to a Resolver will use a generic one.

Resolvers are configurable via Symfony's Service Containers.

Most object types will have a singular and plural form, returning a single object or a list of objects respectively. Single objects can be resolved automatically by ID or other unique fields of the table.

Possible Roadmap

  • Caching of generated ObjectTypes
  • Blacklist for whole tables/types
  • Blacklist for fields
  • Custom types (e.g. to expose any 3rd party API via a GraphQL API over Contao)
  • Authentication (possibly generic to remain unopinionated in that regard)
  • Automatic (and customizable) mutations
@padarom padarom changed the title Ideas Notes and Roadmap Jun 14, 2018
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