Releases: graphpql/graphpinator
Releases · graphpql/graphpinator
Final fuctions
- Marked numerous functions in type objects as final
- Moved request validation inside try-catch block
Multiple operations
- request can now contain multiple operations
Improved object ergonomics
- Request is passed as whole json instead of separate parameters (BC break)
- Added validation of request body
Printing of descriptions (api documentation)
Merge pull request #15 from vossik/sorting Print description
Abstraction of printing order
- ability to implement different sorting algorithm
- AlphabeticalSorter (default) and TypeKindSorter included
Printing - alphabetical sort of types
- Alhpabetical sort of printed types
- EnumItem constructor can set description directly
Removed Instaniable interface
- Instantiable::createValue was moved to Definition interface and Instantiable was removed
- Resolve function now works the same for both concrete and abstract return types.
- Previously: Abstract resolve functions were required to return FieldResult with concrete resolution, this caused major problems for list of abstract types
- Now: Abstract resolve functions can return any result normally, but Abstract types must implement createValue method which should be used to specify concrete resolution
Schema printing
- Implemented schema printing
- New contract: Leaf - either Enum or Scalar
- Few changes to SimpleContainer
Lazy input fields, minor improvements
- Lazy loading of input fields (using same interface as regular type)
- Added EnumItemSet::getArray, to return raw array of options
- Added SimpleContainer implementation
Error responses, location in source
- Source: replaced position int with Location object
- Added errors into response