2024-06-25 11:59:53 +03:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
## [Unreleased]
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
2024-07-01 15:09:27 +03:00
|
|
|
- Query Usage Analytics - usage analytics JSON data is attached to `execute`
|
|
|
|
span using `internal.query_usage_analytics` attribute
|
2024-07-01 18:28:27 +03:00
|
|
|
|
|
|
|
#### Boolean Expression Types
|
|
|
|
|
|
|
|
A new metadata kind `BooleanExpressionType` can now be defined. These can be
|
|
|
|
used in place of `ObjectBooleanExpressionType` and
|
|
|
|
`DataConnectorScalarRepresentation`, and allow more granular control of
|
|
|
|
comparison operators and how they are used.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
kind: BooleanExpressionType
|
|
|
|
version: v1
|
|
|
|
definition:
|
|
|
|
name: album_bool_exp
|
|
|
|
operand:
|
|
|
|
object:
|
|
|
|
type: Album
|
|
|
|
comparableFields:
|
|
|
|
- fieldName: AlbumId
|
|
|
|
booleanExpressionType: pg_int_comparison_exp
|
|
|
|
- fieldName: ArtistId
|
|
|
|
booleanExpressionType: pg_int_comparison_exp_with_is_null
|
|
|
|
- field: Address
|
|
|
|
booleanExpressionType: address_bool_exp
|
|
|
|
comparableRelationships:
|
|
|
|
- relationshipName: Artist
|
|
|
|
booleanExpressionType: artist_bool_exp
|
|
|
|
logicalOperators:
|
|
|
|
enable: true
|
|
|
|
isNull:
|
|
|
|
enable: true
|
|
|
|
graphql:
|
|
|
|
typeName: app_album_bool_exp
|
|
|
|
```
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
kind: BooleanExpressionType
|
|
|
|
version: v1
|
|
|
|
definition:
|
|
|
|
name: pg_int_comparison_exp
|
|
|
|
operand:
|
|
|
|
scalar:
|
|
|
|
type: Int
|
|
|
|
comparisonOperators:
|
|
|
|
- name: equals
|
|
|
|
argumentType: String!
|
|
|
|
- name: _in
|
|
|
|
argumentType: [String!]!
|
|
|
|
dataConnectorOperatorMapping:
|
|
|
|
- dataConnectorName: postgres_db
|
|
|
|
dataConnectorScalarType: String
|
|
|
|
operatorMapping:
|
|
|
|
equals: _eq
|
|
|
|
logicalOperators:
|
|
|
|
enable: true
|
|
|
|
isNull:
|
|
|
|
enable: true
|
|
|
|
graphql:
|
|
|
|
typeName: app_postgres_int_bool_exp
|
|
|
|
```
|
|
|
|
|
2024-06-27 15:42:27 +03:00
|
|
|
- Add flag to (`--expose-internal-errors`) toggle whether to expose internal
|
|
|
|
errors. ([#759](https://github.com/hasura/v3-engine/pull/759))
|
|
|
|
|
2024-06-26 13:48:25 +03:00
|
|
|
#### Aggregates of Array Relationships
|
|
|
|
|
|
|
|
Aggregates of array relationships can now be defined by specifying an
|
|
|
|
`aggregate` in the `Relationship`'s target. Note that this is only supported
|
|
|
|
when the target of the relationship is a `Model`. You must also specify the
|
|
|
|
`aggregateFieldName` under the `graphql` section.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
kind: Relationship
|
|
|
|
version: v1
|
|
|
|
definition:
|
|
|
|
name: invoices
|
|
|
|
sourceType: Customer
|
|
|
|
target:
|
|
|
|
model:
|
|
|
|
name: Invoice
|
|
|
|
relationshipType: Array
|
|
|
|
aggregate: # New!
|
|
|
|
aggregateExpression: Invoice_aggregate_exp
|
|
|
|
description: Aggregate of the customer's invoices
|
|
|
|
mapping:
|
|
|
|
- source:
|
|
|
|
fieldPath:
|
|
|
|
- fieldName: customerId
|
|
|
|
target:
|
|
|
|
modelField:
|
|
|
|
- fieldName: customerId
|
|
|
|
graphql: # New!
|
|
|
|
aggregateFieldName: invoicesAggregate
|
|
|
|
```
|
|
|
|
|
2024-06-25 11:59:53 +03:00
|
|
|
### Changed
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
2024-07-02 10:48:23 +03:00
|
|
|
- Engine now respects `relation_comparisons` capability, when generating GraphQL
|
|
|
|
schema for relationship fields in model filter.
|
|
|
|
- The OpenDD schema for `DataConnectorLink` now references the correct version
|
2024-06-27 06:49:38 +03:00
|
|
|
(v0.1.4) of the NDC schema when using the NDC `CapabilitiesResponse` and
|
|
|
|
`SchemaResponse` types
|
|
|
|
|
2024-06-25 11:59:53 +03:00
|
|
|
## [v2024.06.13]
|
|
|
|
|
|
|
|
Initial release.
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
[Unreleased]: https://github.com/hasura/v3-engine/compare/v2024.06.13...HEAD
|
|
|
|
[v2024.06.13]: https://github.com/hasura/v3-engine/releases/tag/v2024.06.13
|