111 var newKey =
$"can{key.Substring(IsPrefix.Length)}";
Fixes the names used for the default flags types in API rights.
RightsTypeInterceptor()
Initializes a new instance of the RightsTypeInterceptor class.
readonly HashSet< string > inputNames
Names of rights GraphQL input types.
const string IsPrefix
Prefix normally used by hot chocolate for flag enums.
override void OnAfterRegisterDependencies(ITypeDiscoveryContext discoveryContext, DefinitionBase definition)
const string NoneFieldName
Name given to default None fields.
static void FixFields< TField >(IBindableList< TField > fields)
Fix the "is" prefix on a given set of fields .
static void FixFormatter(IInputValueFormatter inputValueFormatter)
Fix the inputValueFormatter for a tweaked field.
readonly HashSet< string > objectNames
Names of rights GraphQL object types.
@ List
User may list files if the Models.Instance allows it.
RightsType
The type of rights a model uses.