Skip to content

Commit

Permalink
fix(GraphQL): fix between filter bugs (#6822)
Browse files Browse the repository at this point in the history
Fixes GRAPHQL-786.

This PR enforces non-null values for `min` and `max` in the `between` filter.
  • Loading branch information
minhaj-shakeel authored Nov 3, 2020
1 parent a3d4842 commit be919e5
Show file tree
Hide file tree
Showing 48 changed files with 480 additions and 480 deletions.
20 changes: 10 additions & 10 deletions graphql/e2e/schema/generatedSchema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
20 changes: 10 additions & 10 deletions graphql/schema/gqlschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,28 +108,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime
input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}
input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}
input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}
input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}
input StringRange{
min: String
max: String
min: String!
max: String!
}
enum DgraphIndex {
Expand Down
20 changes: 10 additions & 10 deletions graphql/schema/testdata/schemagen/output/auth-on-interfaces.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
20 changes: 10 additions & 10 deletions graphql/schema/testdata/schemagen/output/authorization.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
20 changes: 10 additions & 10 deletions graphql/schema/testdata/schemagen/output/custom-mutation.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a
scalar DateTime

input IntRange{
min: Int
max: Int
min: Int!
max: Int!
}

input FloatRange{
min: Float
max: Float
min: Float!
max: Float!
}

input Int64Range{
min: Int64
max: Int64
min: Int64!
max: Int64!
}

input DateTimeRange{
min: DateTime
max: DateTime
min: DateTime!
max: DateTime!
}

input StringRange{
min: String
max: String
min: String!
max: String!
}

enum DgraphIndex {
Expand Down
Loading

0 comments on commit be919e5

Please sign in to comment.