private static string DefaultScalarFieldMapping(GraphQlField field)
        {
            var propertyName = NamingHelper.CapitalizeFirst(field.Name);

            if (propertyName == "From" || propertyName == "ValidFrom" || propertyName == "CreatedAt" ||
                propertyName == "To" || propertyName == "ValidTo" || propertyName == "ModifiedAt" || propertyName.EndsWith("Timestamp"))
            {
                return("DateTimeOffset?");
            }

            return("string");
        }
Exemplo n.º 2
0
 internal static bool FilterDeprecatedFields(GraphQlField field) =>
 !field.IsDeprecated || GraphQlGeneratorConfiguration.IncludeDeprecatedFields;