public static HashSet <Guid> GetReferencedIds(this IField field, IJsonValue?value, int referencesPerField = int.MaxValue) { var result = new HashSet <Guid>(); if (value != null) { var extractor = new ReferencesExtractor(result, referencesPerField); extractor.SetValue(value); field.Accept(extractor); } return(result); }
public static IEdmTypeReference CreateEdmType(IField field) { return(field.Accept(Instance)); }
public static None Extract(IField field, IJsonValue?value, HashSet <DomainId> result, int take) { var args = new Args(value ?? JsonValue.Null, result, take); return(field.Accept(Instance, args)); }
public static IGraphType?Build(IField field, IGraphModel model, ISchemaEntity schema, string fieldName) { var args = new Args(model, schema, fieldName); return(field.Accept(Instance, args)); }
public static IEnumerable <IValidator> CreateValidators(IField field) { Guard.NotNull(field, nameof(field)); return(field.Accept(Instance)); }
public static JsonSchemaProperty?BuildProperty(IField field, SchemaResolver?schemaResolver = null, bool withHiddenFields = false) { var args = new Args(schemaResolver, withHiddenFields, 0); return(field.Accept(Instance, args)); }
public (IGraphType?, ValueResolver?, QueryArguments?) GetGraphType(ISchemaEntity schema, IField field, string fieldName) { return(field.Accept(new QueryGraphTypeVisitor(schema, contentTypes, this, assetListType, fieldName))); }
public static IEnumerable <IValidator> CreateValidators(ValidatorContext context, IField field, ValidatorFactory createFieldValidator) { var args = new Args(context, createFieldValidator); return(field.Accept(Instance, args)); }
public static FilterSchema?BuildProperty(IField field, ResolvedComponents components) { var args = new Args(components); return(field.Accept(Instance, args)); }
public static IEnumerable <IValidator> CreateValidators(IField field) { return(field.Accept(Instance, None.Value)); }
public (IGraphType ResolveType, IFieldResolver Resolver) GetGraphType(IField field) { return(field.Accept(schemaTypes)); }
public static JToken CleanReferences(IField field, JToken value, ICollection <Guid> oldReferences) { return(field.Accept(new ReferencesCleaner(value, oldReferences))); }
public static IJsonValue CreateDefaultValue(IField field, Instant now) { Guard.NotNull(field); return(field.Accept(new DefaultValueFactory(now))); }
public static JToken CreateDefaultValue(IField field, Instant now) { Guard.NotNull(field, nameof(field)); return(field.Accept(new DefaultValueFactory(now))); }
public static IGraphType GetInputGraphType(this IField field) { return(field.Accept(InputFieldVisitor.Default)); }
public (IGraphType ResolveType, ValueResolver Resolver) GetGraphType(ISchemaEntity schema, IField field) { return(field.Accept(new QueryGraphTypeVisitor(schema, GetContentType, this, assetListType))); }
public IEdmTypeReference?CreateEdmType(IField field) { return(field.Accept(this)); }
public static IEnumerable <Guid> ExtractReferences(IField field, IJsonValue value) { return(field.Accept(new ReferencesExtractor(value))); }
public IGraphType?GetInputGraphType(ISchemaEntity schema, IField field, string fieldName) { return(field.Accept(new InputFieldVisitor(schema, this, fieldName))); }
public static IJsonValue CleanReferences(IField field, IJsonValue value, ICollection <Guid> oldReferences) { return(field.Accept(new ReferencesCleaner(value, oldReferences))); }
public (IGraphType?, ValueResolver?, QueryArguments?) GetGraphType(ISchemaEntity schema, IField field, string fieldName) { return(field.Accept(graphQLTypeVisitor, new GraphQLTypeVisitor.Args(schema, fieldName))); }
public static IEdmTypeReference?BuildType(IField field, EdmTypeFactory factory) { var args = new Args(factory); return(field.Accept(Instance, args)); }
public static IJsonValue CreateDefaultValue(IField field, Instant now, string partition) { Guard.NotNull(field, nameof(field)); return(field.Accept(new DefaultValueFactory(now, partition))); }
public static IJsonValue Cleanup(IField field, IJsonValue?value, HashSet <DomainId> validIds) { var args = new Args(value ?? JsonValue.Null, validIds); return(field.Accept(Instance, args)); }
public static object ConvertValue(IField field, IJsonValue json) { return(field.Accept(new JsonValueConverter(json))); }
public static IEdmTypeReference?BuildType(IField field, EdmTypeFactory factory, ResolvedComponents components) { var args = new Args(factory, components); return(field.Accept(Instance, args)); }