Major Changes
-
#5927
530d8cd
Thanks @MacondoExpress! - Thetypename_IN
filter has been renamed totypename
. -
#5898
a912404
Thanks @MacondoExpress! - Aggregations are no longer generated forID
fields.
Minor Changes
-
#5868
46ab2fa
Thanks @angrykoala! - Add suport for generic update operators:mutation { updateMovies(update: { name: { set: "The Matrix" } }) { movies { id name } } }
-
#5873
17911fc
Thanks @MacondoExpress! - Introduce a new style for filtering relationships and connections.
The quantifiersSOME
|NONE
|SINGLE
|ALL
are now available as a nested input object.Relationship
{ movies(where: { genres: { some: { name: { equals: "some genre" } } } }) { actorCount } }
Connection
{ movies(where: { genresConnection: { some: { node: { name: { equals: "some genre" } } } } }) { actorCount } }
Patch Changes
-
#5871
722c650
Thanks @angrykoala! - Deprecate individual mutations in favor of generic mutations_SET
_POP
_PUSH
_INCREMENT
_ADD
_DECREMENT
_SUBTRACT
_MULTIPLY
_DIVIDE
-
#5882
7254acf
Thanks @angrykoala! - Deprecates old aggregation filters for relationships in favor of more generic filters:Before:
query Movies { movies( where: { actorsAggregate: { node: { lastRating_AVERAGE_GT: 6 } } } ) { title } }
Now:
query Movies { movies( where: { actorsAggregate: { node: { lastRating: { average: { gt: 6 } } } } } ) { title } }
-
#5897
4f3b068
Thanks @MacondoExpress! - Deprecate relationship filtering using the non-generic version such asactors_SOME: { title_EQ: "The Matrix" }
in favor of the generic inputactors: { some: { title: { eq: "The Matrix" } } }
.
The settingexcludeDeprecatedFields
now contains the optionrelationshipFilters
to remove these deprecated filters. -
#5897
917482b
Thanks @MacondoExpress! - Deprecate attribute filtering using the non-generic version such astitle_EQ: "The Matrix"
in favor of the generic inputtitle: { eq: "The Matrix" }
.
The settingexcludeDeprecatedFields
now contains the optionattributeFilters
to remove these deprecated filters. -
#5879
5c7ba22
Thanks @angrykoala! - Add generic filters for aggregations:{ posts(where: { likesAggregate: { node: { rating: { average: { eq: 3.2 } } } } }) { title } }
-
#5882
7254acf
Thanks @angrykoala! - Introduce the flag "aggregationFilters" to remove deprecated aggregation filters:const neoSchema = new Neo4jGraphQL({ typeDefs, features: { excludeDeprecatedFields: { aggregationFilters: true } }, });