Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Dec 09:34
· 217 commits to main since this release
a1f103b

Added

  • To-many relationships are now represented by an additional nesting level which contains the fields totalCount and nodes. totalCount is similar to OData $count. nodes contains the fields belonging to the entity. This is similar to the GraphQL cursor connection specification, but without an additional second edges nesting level. The following shows an example query using the new schema structure:
    {
      AdminService {
        Books {
          totalCount
          nodes {
            title
          }
        }
      }
    }
  • Support for aliases on fields returned by mutations
  • Improved support for aliases on fields that represent compositions and associations (some limitations still apply)
  • Include localized texts fields of entities in schema generation
  • Improve check to skip field localized during schema generation

Changed

  • The GraphQL protocol adapter now uses a new middlewares mechanism instead of cds.plugins which requires @sap/cds version 6.3 to run. Enable the cds.requires.middlewares flag and register the GraphQL protocol adapter in cds.env.protocols to get started.
  • Replaced debug level query and mutation logging with improved info level request logging