private static void AddType(IGqlUnique type) { GqlTypes.Add(type.GetClrType(), type); UniqueTypes.Add(type.GetClrType(), type); ResolveTypes.Add(type.GetClrType().Name, type); }
public GqlExtendedUnique(string sqlTable, string name) : base(sqlTable, name) { TargetGqlObject = Schema.UniqueTypes[typeof(T).BaseType]; }
private static string JavascriptDescriptionType(IGqlUnique value) { return ($"{value.JavascriptTypeName}.addFields([{string.Join(",", value.Fields.Select(_ => _.Value.BuildSchemeJavascript()))}])"); }
public GqlMap(IGqlUnique type) { InstanceGqlType = type; _mapType = typeof(Map <>).MakeGenericType(InstanceGqlType.GetClrType()); }