From 9ed23531969fa6ef84ef65c95734bf9b8b5e1b3a Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 07:48:01 +0300 Subject: [PATCH 1/3] Initial commit with task details for issue #9 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Data.Doublets.Gql/issues/9 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..aaff0373 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Data.Doublets.Gql/issues/9 +Your prepared branch: issue-9-ee4d64a5 +Your prepared working directory: /tmp/gh-issue-solver-1757738878506 + +Proceed. \ No newline at end of file From 2ef359949df54935ba7c3620bc48a21f5e9a8f57 Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 08:04:46 +0300 Subject: [PATCH 2/3] 'Auto-commit changes made by Claude MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude ' --- .editorconfig | 1 - .../Types/LinksType.cs | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) delete mode 120000 .editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 120000 index 3ca15af8..00000000 --- a/.editorconfig +++ /dev/null @@ -1 +0,0 @@ -Settings/.editorconfig \ No newline at end of file diff --git a/csharp/Platform.Data.Doublets.Gql.Schema/Types/LinksType.cs b/csharp/Platform.Data.Doublets.Gql.Schema/Types/LinksType.cs index b787ac36..03b49be8 100644 --- a/csharp/Platform.Data.Doublets.Gql.Schema/Types/LinksType.cs +++ b/csharp/Platform.Data.Doublets.Gql.Schema/Types/LinksType.cs @@ -21,10 +21,13 @@ public LinksType() Field>(nameof(MappedType.in_aggregate), null, LinksQuery.Arguments, ResolveInAggregate); Field>>>(nameof(MappedType.@out), null, LinksQuery.Arguments, ResolveOut); Field>(nameof(MappedType.out_aggregate), null, LinksQuery.Arguments, ResolveOutAggregate); + Field(nameof(MappedType.@string)); Field(o => o.to, true, typeof(LinksType)).Resolve(ResolveTo); Field>(nameof(MappedType.to_id)); Field(o => o.type, true, typeof(LinksType)).Resolve(ResolveType); Field>(nameof(MappedType.type_id)); + Field("from_string", resolve: context => ResolveFromString(context)); + Field("to_string", resolve: context => ResolveToString(context)); } private LinksAggregateType ResolveInAggregate(IResolveFieldContext context) => new(); @@ -41,6 +44,18 @@ public LinksType() private Links ResolveType(IResolveFieldContext context) => context.Source.type ?? GetLinkOrDefault(context, (long?)context.Source.type_id); + private string ResolveFromString(IResolveFieldContext context) + { + var fromLink = context.Source.from ?? GetLinkOrDefault(context, context.Source.from_id); + return fromLink?.@string; + } + + private string ResolveToString(IResolveFieldContext context) + { + var toLink = context.Source.to ?? GetLinkOrDefault(context, context.Source.to_id); + return toLink?.@string; + } + public static Links GetLinkOrDefault(IResolveFieldContext context, long? linkId) => linkId != null ? GetLinkOrDefault(context.RequestServices.GetService>(), (ulong)linkId) : default; public static Links GetLinkOrDefault(object service, long linkId) => GetLinkOrDefault((ILinks)service, (ulong)linkId); From 385cde2ae5f5b0b7a8b940111b0ef407a7458961 Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 08:06:42 +0300 Subject: [PATCH 3/3] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index aaff0373..00000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Data.Doublets.Gql/issues/9 -Your prepared branch: issue-9-ee4d64a5 -Your prepared working directory: /tmp/gh-issue-solver-1757738878506 - -Proceed. \ No newline at end of file