private Neo4JExecutable <TEntity> CreatePagingContainer(object source) { return(source switch { Neo4JExecutable <TEntity> nfe => CreatePagingContainer(nfe.Pipeline()), _ => throw ThrowHelper.PagingTypeNotSupported(source.GetType()) });
protected override ValueTask <CollectionSegment> SliceAsync( IResolverContext context, object source, OffsetPagingArguments arguments) { Neo4JExecutable <TEntity> f = CreatePagingContainer(source); return(ResolveAsync(context, f, arguments)); }