Skip to content

v7.2.0

Compare
Choose a tag to compare
@exogen exogen released this 18 Sep 06:47
· 3 commits to master since this release

New Features

  • Individual fields within a type are now linkable via an id within each field’s table row. For example, if the type MessageInput has a field author, you can link to the corresponding table row with the fragment #messageinput.author.

    Additionally, fields can now appear in the Table of Contents, nested under their parent type, with the new --toc-fields CLI option or tocFieldTypes option to renderSchema.

    You can show fields in the TOC for specific types (comma-separated):

    --toc-fields "Query,Mutation,Subscription"
    

    …or for all types with the special string *. This will include query, mutation, subscription, object, input, and interface types.

    --toc-fields "*"
    

    Note that fields always get an anchor ID and are thus always linkable, regardless of whether they appear in the TOC.

    (#104, thanks @cyberwombat and @fmontorsi-equinix for the initial work and discussion!)

Full Changelog: v7.1.0...v7.2.0