File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
hypertrace-core-graphql-common-schema/src/main/java/org/hypertrace/core/graphql/common/schema/pair Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ package org .hypertrace .core .graphql .common .schema .pair ;
2+
3+ import graphql .annotations .annotationTypes .GraphQLDescription ;
4+ import graphql .annotations .annotationTypes .GraphQLField ;
5+ import graphql .annotations .annotationTypes .GraphQLName ;
6+ import graphql .annotations .annotationTypes .GraphQLNonNull ;
7+
8+ @ GraphQLName (KeyValuePair .TYPE_NAME )
9+ @ GraphQLDescription ("A pair of a key and a value" )
10+ public interface KeyValuePair {
11+ String TYPE_NAME = "KeyValuePair" ;
12+
13+ String KEY = "key" ;
14+ String VALUE = "value" ;
15+
16+ @ GraphQLField
17+ @ GraphQLName (KEY )
18+ @ GraphQLNonNull
19+ @ GraphQLDescription ("String based key name" )
20+ String key ();
21+
22+ @ GraphQLField
23+ @ GraphQLName (VALUE )
24+ @ GraphQLNonNull
25+ @ GraphQLDescription ("Value of a generic type" )
26+ Object value ();
27+ }
You can’t perform that action at this time.
0 commit comments