Notes and Roadmap
padarom opened this issue · 0 comments
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
ObjectType
s - 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