I have an enum defined in graphql schema as below:
enum QueryType {
NORMAL, RANGE, REGEX, WILDCARD
}
But the WILDCARD query, can be further specified as STARTSWITH, ENDSWITH and CONTAINS,
So can we achieve something like below while defining Schema
enum QueryType {
NORMAL, RANGE, REGEX, enum WILDCARD { STARTSWITH, ENDSWITH, CONTAINS}
}
or
enum QueryType {
NORMAL, RANGE, REGEX, WILDCARD: WildCardType
}
enum WildCardType { STARTSWITH, ENDSWITH, CONTAINS}