Releases: cap-js/graphql
Releases · cap-js/graphql
v0.4.1
Fixed
cds-plugin.js
was missing infiles
property ofpackage.json
v0.4.0
Added
- Supporting new
cds-plugin
technique for zero configuration - Support for filtering by
null
values - Allow multiple filters on the same field, with the same operator, that are logically joined by
AND
. For example, filtering for all books with titles that contain both strings, "Wuthering" and "Heights":{ AdminService { Books(filter: { title: { contains: ["Wuthering", "Heights"] } }) { nodes { title } } } }
Changed
- Improved handling of
null
andundefined
values in query arguments - Empty filter lists resolve to
false
and empty filter objects resolve totrue
Fixed
- Handling of GraphQL queries that are sent via
GET
requests using thequery
URL parameter if GraphiQL is enabled
v0.3.1
Fixed
- Add
app
folder tofiles
property ofpackage.json
to be included for publishing tonpm
v0.3.0
Changed
- Replaced deprecated GraphQL HTTP server
express-graphql
withgraphql-http
- Serve GraphiQL 2 via included HTML instead of relying on the server framework (
express-graphql
included GraphiQL 1) - Bump
graphql
version to 16 - Execute query resolvers in parallel and mutation resolvers serially
v0.2.0
Changed
- Register
aliasFieldResolver
during schema generation instead of passing it to the GraphQL server - The filters
contains
,startswith
, andendswith
now generate CQN function calls instead of generatinglike
expressions directly
Fixed
- Schema generation crash that occurred if an entity property is named
localized
- The field
totalCount
could not be queried on its own
v0.1.0
Added
- To-many relationships are now represented by an additional nesting level which contains the fields
totalCount
andnodes
.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 secondedges
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 thecds.requires.middlewares
flag and register the GraphQL protocol adapter incds.env.protocols
to get started. - Replaced
debug
level query and mutation logging with improvedinfo
level request logging