8.1.0 (2021-05-11)
Bug Fixes
- toSDL: remove trailing spaces in descriptions (affects old graphql versions) (8aa88fd)
Features
- SchemaComposer: method
toSDL()
now by default sorts types by kinds (RootObjects, Scalars, Enums, Union, Interface, Object, Input) and after that in alphabetic order. This change of default sorting greatly improves the readability of SDL files for humans and keeps stable sort order for machines. If you need old behavior change it totoSDL({ sortTypes: undefined })
. (bb6bb14) - toSDL: allow custom sorting function for types; added
GROUP_BY_TYPE
sorting which sorts by type kind RootTypes, Scalar, Enum, Union, Interface, Object, Input and after that in alphabetic order (#332 by @rhengles) (933d0f8)