From 4d70f62d5cc11c833f3b1ac2c9e95fab4d7f855d Mon Sep 17 00:00:00 2001 From: Rajas Vanjape Date: Wed, 28 Oct 2020 17:49:47 +0530 Subject: [PATCH] Fix merge conflicts with master --- .../output/generate-directive.graphql | 79 ++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/graphql/schema/testdata/schemagen/output/generate-directive.graphql b/graphql/schema/testdata/schemagen/output/generate-directive.graphql index 8ee4c185c9a..d6722a2fee5 100644 --- a/graphql/schema/testdata/schemagen/output/generate-directive.graphql +++ b/graphql/schema/testdata/schemagen/output/generate-directive.graphql @@ -36,6 +36,31 @@ For example: "1985-04-12T23:20:50.52Z" represents 20 minutes and 50.52 seconds a """ scalar DateTime +input IntRange{ + min: Int + max: Int +} + +input FloatRange{ + min: Float + max: Float +} + +input Int64Range{ + min: Int64 + max: Int64 +} + +input DateTimeRange{ + min: DateTime + max: DateTime +} + +input StringRange{ + min: String + max: String +} + enum DgraphIndex { int int64 @@ -102,7 +127,53 @@ input NearFilter { } input PointGeoFilter { - near: NearFilter! + near: NearFilter + within: WithinFilter +} + +type PointList { + points: [Point!]! +} + +input PointListRef { + points: [PointRef!]! +} + +type Polygon { + coordinates: [PointList!]! +} + +input PolygonRef { + coordinates: [PointListRef!]! +} + +type MultiPolygon { + polygons: [Polygon!]! +} + +input MultiPolygonRef { + polygons: [PolygonRef!]! +} + +input WithinFilter { + polygon: PolygonRef! +} + +input ContainsFilter { + point: PointRef + polygon: PolygonRef +} + +input IntersectsFilter { + polygon: PolygonRef + multiPolygon: MultiPolygonRef +} + +input PolygonGeoFilter { + near: NearFilter + within: WithinFilter + contains: ContainsFilter + intersects: IntersectsFilter } input GenerateQueryParams { @@ -132,6 +203,7 @@ directive @custom(http: CustomHTTP, dql: String) on FIELD_DEFINITION directive @remote on OBJECT | INTERFACE | UNION | INPUT_OBJECT | ENUM directive @cascade(fields: [String]) on FIELD directive @lambda on FIELD_DEFINITION +directive @cacheControl(maxAge: Int!) on QUERY directive @generate( query: GenerateQueryParams, mutation: GenerateMutationParams, @@ -143,6 +215,7 @@ input IntFilter { lt: Int ge: Int gt: Int + between: IntRange } input Int64Filter { @@ -151,6 +224,7 @@ input Int64Filter { lt: Int64 ge: Int64 gt: Int64 + between: Int64Range } input FloatFilter { @@ -159,6 +233,7 @@ input FloatFilter { lt: Float ge: Float gt: Float + between: FloatRange } input DateTimeFilter { @@ -167,6 +242,7 @@ input DateTimeFilter { lt: DateTime ge: DateTime gt: DateTime + between: DateTimeRange } input StringTermFilter { @@ -190,6 +266,7 @@ input StringExactFilter { lt: String ge: String gt: String + between: StringRange } input StringHashFilter {