RegularExpression
A GraphQLScalarType object generator that takes two arguments:
name- The name of your custom typeregex- The regex to be used to check against any values for fields with this new type
const MyRegexType = new RegularExpression('MyRegexType', /^ABC$/)Last updated on