Skip to content

@neo4j/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@neo4j-team-graphql neo4j-team-graphql released this 06 Jan 14:46
· 3 commits to dev since this release
3c10304

Major Changes

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 quantifiers SOME | 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 as actors_SOME: { title_EQ: "The Matrix" } in favor of the generic input actors: { some: { title: { eq: "The Matrix" } } }.
    The setting excludeDeprecatedFields now contains the option relationshipFilters to remove these deprecated filters.

  • #5897 917482b Thanks @MacondoExpress! - Deprecate attribute filtering using the non-generic version such as title_EQ: "The Matrix" in favor of the generic input title: { eq: "The Matrix" }.
    The setting excludeDeprecatedFields now contains the option attributeFilters 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 } },
    });