public string Resolve(Type type, object @object)
        {
            if (TryConnectionSettingsRoute(type, @object, out var route))
            {
                return(route);
            }
            var joinField = GetJoinFieldFromObject(type, @object);

            return(joinField?.Match(p => _idResolver.Resolve(@object), c => ResolveId(c.Parent, _connectionSettings)));
        }
Esempio n. 2
0
 public string Id(Type type, object instance) => IdResolver.Resolve(type, instance);
Esempio n. 3
0
 public string Id <T>(T instance) where T : class => IdResolver.Resolve(instance);