From 504a2f71aa617718a17e439b5f7f4ea1cca4422b Mon Sep 17 00:00:00 2001 From: Bhuvnesh Bamoriya <48723434+bhubam@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:32:01 +0530 Subject: [PATCH] add logical operator in hypertrace gql common schema (#165) --- .../common/schema/operator/LogicalOperator.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/operator/LogicalOperator.java diff --git a/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/operator/LogicalOperator.java b/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/operator/LogicalOperator.java new file mode 100644 index 00000000..53c1f45d --- /dev/null +++ b/hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/operator/LogicalOperator.java @@ -0,0 +1,12 @@ +package org.hypertrace.core.graphql.common.schema.operator; + +import graphql.annotations.annotationTypes.GraphQLDescription; +import graphql.annotations.annotationTypes.GraphQLName; + +@GraphQLDescription("Logical operator describing how to combine multiple independent clauses") +@GraphQLName(LogicalOperator.TYPE_NAME) +public enum LogicalOperator { + AND, + OR; + static final String TYPE_NAME = "LogicalOperator"; +}