Skip to content

Commit

Permalink
Merge pull request #5875 from neo4j/update-filter-operators
Browse files Browse the repository at this point in the history
Update filter operators
  • Loading branch information
angrykoala authored Dec 10, 2024
2 parents 1e9373f + 84dca19 commit 1a9102a
Show file tree
Hide file tree
Showing 118 changed files with 2,169 additions and 2,182 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const BigIntScalarFilters = new GraphQLInputObjectType({
name: "BigIntScalarFilters",
description: "BigInt filters",
fields: {
equals: {
eq: {
type: GraphQLBigInt,
},
greaterThan: { type: GraphQLBigInt },
greaterThanEquals: { type: GraphQLBigInt },
gt: { type: GraphQLBigInt },
gte: { type: GraphQLBigInt },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLBigInt)) },
lessThan: { type: GraphQLBigInt },
lessThanEquals: { type: GraphQLBigInt },
lt: { type: GraphQLBigInt },
lte: { type: GraphQLBigInt },
},
});

export const BigIntListFilters = new GraphQLInputObjectType({
name: "BigIntListFilters",
description: "BigInt list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(BigIntScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(BigIntScalarFilters)) },
includes: { type: BigIntScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const BooleanScalarFilters = new GraphQLInputObjectType({
name: "BooleanScalarFilters",
description: "Boolean filters",
fields: {
equals: {
eq: {
type: GraphQLBoolean,
},
},
Expand All @@ -33,6 +33,6 @@ export const BooleanListFilters = new GraphQLInputObjectType({
name: "BooleanListFilters",
description: "Boolean list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(BooleanScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(BooleanScalarFilters)) },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const CartesianPointFilters = new GraphQLInputObjectType({
name: "CartesianPointFilters",
description: "Cartesian Point filters",
fields: {
equals: {
eq: {
type: CartesianPointInput,
},
in: { type: new GraphQLList(new GraphQLNonNull(CartesianPointInput)) },
Expand All @@ -50,7 +50,7 @@ export const CartesianPointListFilters = new GraphQLInputObjectType({
name: "CartesianPointListFilters",
description: "CartesianPoint list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(CartesianPointFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(CartesianPointFilters)) },
includes: { type: CartesianPointFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const DateScalarFilters = new GraphQLInputObjectType({
name: "DateScalarFilters",
description: "Date filters",
fields: {
equals: {
eq: {
type: GraphQLDate,
},
greaterThan: { type: GraphQLDate },
greaterThanEquals: { type: GraphQLDate },
gt: { type: GraphQLDate },
gte: { type: GraphQLDate },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLDate)) },
lessThan: { type: GraphQLDate },
lessThanEquals: { type: GraphQLDate },
lt: { type: GraphQLDate },
lte: { type: GraphQLDate },
},
});

export const DateListFilters = new GraphQLInputObjectType({
name: "DateListFilters",
description: "Date list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(DateScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(DateScalarFilters)) },
includes: { type: DateScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const DateTimeScalarFilters = new GraphQLInputObjectType({
name: "DateTimeScalarFilters",
description: "DateTime filters",
fields: {
equals: {
eq: {
type: GraphQLDateTime,
},
greaterThan: { type: GraphQLDateTime },
greaterThanEquals: { type: GraphQLDateTime },
gt: { type: GraphQLDateTime },
gte: { type: GraphQLDateTime },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLDateTime)) },
lessThan: { type: GraphQLDateTime },
lessThanEquals: { type: GraphQLDateTime },
lt: { type: GraphQLDateTime },
lte: { type: GraphQLDateTime },
},
});

export const DateTimeListFilters = new GraphQLInputObjectType({
name: "DateTimeListFilters",
description: "DateTime list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(DateTimeScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(DateTimeScalarFilters)) },
includes: { type: DateTimeScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const DurationScalarFilters = new GraphQLInputObjectType({
name: "DurationScalarFilters",
description: "Duration filters",
fields: {
equals: {
eq: {
type: GraphQLDuration,
},
greaterThan: { type: GraphQLDuration },
greaterThanEquals: { type: GraphQLDuration },
gt: { type: GraphQLDuration },
gte: { type: GraphQLDuration },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLDuration)) },
lessThan: { type: GraphQLDuration },
lessThanEquals: { type: GraphQLDuration },
lt: { type: GraphQLDuration },
lte: { type: GraphQLDuration },
},
});

export const DurationListFilters = new GraphQLInputObjectType({
name: "DurationListFilters",
description: "Duration list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(DurationScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(DurationScalarFilters)) },
includes: { type: DurationScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ export const FloatScalarFilters = new GraphQLInputObjectType({
name: "FloatScalarFilters",
description: "Float filters",
fields: {
equals: {
eq: {
type: GraphQLFloat,
},
greaterThan: { type: GraphQLFloat },
greaterThanEquals: { type: GraphQLFloat },
gt: { type: GraphQLFloat },
gte: { type: GraphQLFloat },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLFloat)) },
lessThan: { type: GraphQLFloat },
lessThanEquals: { type: GraphQLFloat },
lt: { type: GraphQLFloat },
lte: { type: GraphQLFloat },
},
});

export const FloatListFilters = new GraphQLInputObjectType({
name: "FloatListFilters",
description: "Float list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(FloatScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(FloatScalarFilters)) },
includes: { type: FloatScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export const IDScalarFilters = new GraphQLInputObjectType({
name: "IDScalarFilters",
description: "ID filters",
fields: {
equals: {
eq: {
type: GraphQLID,
},
matches: { type: GraphQLID },
greaterThan: { type: GraphQLID }, // GT/LT/GTE etc should not be added all the time
greaterThanEquals: { type: GraphQLID },
gt: { type: GraphQLID }, // GT/LT/GTE etc should not be added all the time
gte: { type: GraphQLID },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLID)) },
lessThan: { type: GraphQLID },
lessThanEquals: { type: GraphQLID },
lt: { type: GraphQLID },
lte: { type: GraphQLID },
contains: { type: GraphQLID },
endsWith: { type: GraphQLID },
startsWith: { type: GraphQLID },
Expand All @@ -42,7 +42,7 @@ export const IDListFilters = new GraphQLInputObjectType({
name: "IDListFilters",
description: "ID list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(IDScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(IDScalarFilters)) },
includes: { type: IDScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ export const IntScalarFilters = new GraphQLInputObjectType({
name: "IntScalarFilters",
description: "Int filters",
fields: {
equals: { type: GraphQLInt },
greaterThan: { type: GraphQLInt },
greaterThanEquals: { type: GraphQLInt },
eq: { type: GraphQLInt },
gt: { type: GraphQLInt },
gte: { type: GraphQLInt },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLInt)) },
lessThan: { type: GraphQLInt },
lessThanEquals: { type: GraphQLInt },
lt: { type: GraphQLInt },
lte: { type: GraphQLInt },
},
});

export const IntListFilters = new GraphQLInputObjectType({
name: "IntListFilters",
description: "Int list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(GraphQLInt)) },
eq: { type: new GraphQLList(new GraphQLNonNull(GraphQLInt)) },
includes: { type: GraphQLInt },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const LocalDateTimeScalarFilters = new GraphQLInputObjectType({
name: "LocalDateTimeScalarFilters",
description: "LocalDateTime filters",
fields: {
equals: {
eq: {
type: GraphQLLocalDateTime,
},
greaterThan: { type: GraphQLLocalDateTime },
greaterThanEquals: { type: GraphQLLocalDateTime },
gt: { type: GraphQLLocalDateTime },
gte: { type: GraphQLLocalDateTime },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLLocalDateTime)) },
lessThan: { type: GraphQLLocalDateTime },
lessThanEquals: { type: GraphQLLocalDateTime },
lt: { type: GraphQLLocalDateTime },
lte: { type: GraphQLLocalDateTime },
},
});

export const LocalDateTimeListFilters = new GraphQLInputObjectType({
name: "LocalDateTimeListFilters",
description: "LocalDateTime list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(LocalDateTimeScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(LocalDateTimeScalarFilters)) },
includes: { type: LocalDateTimeScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const LocalTimeScalarFilters = new GraphQLInputObjectType({
name: "LocalTimeScalarFilters",
description: "LocalTime filters",
fields: {
equals: {
eq: {
type: GraphQLLocalTime,
},
greaterThan: { type: GraphQLLocalTime },
greaterThanEquals: { type: GraphQLLocalTime },
gt: { type: GraphQLLocalTime },
gte: { type: GraphQLLocalTime },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLLocalTime)) },
lessThan: { type: GraphQLLocalTime },
lessThanEquals: { type: GraphQLLocalTime },
lt: { type: GraphQLLocalTime },
lte: { type: GraphQLLocalTime },
},
});

export const LocalTimeListFilters = new GraphQLInputObjectType({
name: "LocalTimeListFilters",
description: "LocalTime list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(LocalTimeScalarFilters)) },
eq: { type: new GraphQLList(new GraphQLNonNull(LocalTimeScalarFilters)) },
includes: { type: LocalTimeScalarFilters },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const PointFilters = new GraphQLInputObjectType({
name: "PointFilters",
description: "Point filters",
fields: {
equals: {
eq: {
type: PointInput,
},
in: { type: new GraphQLList(new GraphQLNonNull(PointInput)) },
Expand All @@ -51,7 +51,7 @@ export const PointListFilters = new GraphQLInputObjectType({
name: "PointListFilters",
description: "Point list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(PointInput)) },
eq: { type: new GraphQLList(new GraphQLNonNull(PointInput)) },
includes: { type: PointInput },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export const StringScalarFilters = new GraphQLInputObjectType({
name: "StringScalarFilters",
description: "String filters",
fields: {
equals: {
eq: {
type: GraphQLString,
},
matches: { type: GraphQLString },
greaterThan: { type: GraphQLString }, // GT/LT/GTE etc should not be added all the time
greaterThanEquals: { type: GraphQLString },
gt: { type: GraphQLString }, // GT/LT/GTE etc should not be added all the time
gte: { type: GraphQLString },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLString)) },
lessThan: { type: GraphQLString },
lessThanEquals: { type: GraphQLString },
lt: { type: GraphQLString },
lte: { type: GraphQLString },
contains: { type: GraphQLString },
endsWith: { type: GraphQLString },
startsWith: { type: GraphQLString },
Expand All @@ -42,7 +42,7 @@ export const StringListFilters = new GraphQLInputObjectType({
name: "StringListFilters",
description: "String list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(GraphQLString)) },
eq: { type: new GraphQLList(new GraphQLNonNull(GraphQLString)) },
includes: { type: GraphQLString },
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ export const TimeScalarFilters = new GraphQLInputObjectType({
name: "TimeScalarFilters",
description: "Time filters",
fields: {
equals: {
eq: {
type: GraphQLTime,
},
greaterThan: { type: GraphQLTime },
greaterThanEquals: { type: GraphQLTime },
gt: { type: GraphQLTime },
gte: { type: GraphQLTime },
in: { type: new GraphQLList(new GraphQLNonNull(GraphQLTime)) },
lessThan: { type: GraphQLTime },
lessThanEquals: { type: GraphQLTime },
lt: { type: GraphQLTime },
lte: { type: GraphQLTime },
},
});

export const TimeListFilters = new GraphQLInputObjectType({
name: "TimeListFilters",
description: "Time list filters",
fields: {
equals: { type: new GraphQLList(new GraphQLNonNull(GraphQLTime)) },
eq: { type: new GraphQLList(new GraphQLNonNull(GraphQLTime)) },
includes: { type: GraphQLTime },
},
});
Loading

0 comments on commit 1a9102a

Please sign in to comment.