For a complete demonstration, please refer to the example and documentation of the project itself.
At runtime, the framework can automatically convert the input object to a dynamic entity object tree and you only need one sentence to save any complex entity object tree to the database.ĭue to space limitations, all EntityMappers only uses a static mapping configuration similar to ORM, and does not use a more dynamic code configuration.
If you need pagination query, there is no development cost except changing the return type of ordinary query from ListWhether it is to implement query-level arguments or association-level arguments, you only need to use strongly typed SQL DSL to specify some dynamic filtering and sorting, and the rest is done automatically. User implementation fields can also enjoy the automatic generated DataLoader and related batch loading optimization at runtime.
It is easy to add user implemention fields to entity, where you can implement business-related calculations. When kotlin dsl is used to complete the mapping configuration between entities and tables, GraphQL objects and associations are automatically completed, including the runtime association-level DataLoader and related batch loading optimization. It is a GRM (GraphQL-Relation mapping), and its usage is similar to ORM.
Extra types - Some useful and commonly used types, both scalar or composite.Printer - Schema printing for GraPHPinator typesystem.Includes some opt-in extensions which are out of scope of official specs:.Easy to extend with extra functionality using Modules or middleware Directives. Sacrafices a tiny bit of convenience for huge amount of clarity and safety - no random configuration arrays, no mixed types, no variable function arguments - this library doesnt try to save you from verbosity, but makes sure you always know what you've got. Fully typesafe, and therefore minimum required PHP version is 8.0.Aims to be compliant with the latest draft of GraphQL specification.Its job is transformation of query string into resolved Json result for a given Schema. GraPHPinator is feature complete PHP implementation of GraphQL server.