Ejemplo n.º 1
0
        public ColorType(ITranslationRepository repo)
        {
            Field(x => x.Id).Description("Color id.");
            Field(x => x.Rgb, nullable: true).Description("RGB code.");

            Field <ListGraphType <TranslationType> >(
                "translations",
                resolve: context => repo.GetTranslationsByColor(context.Source.Id).Result
                );
        }