public static FinalContinuationBuilder <TOuterQuery> AddSteps <TOuterQuery>(this FinalContinuationBuilder <TOuterQuery> builder, IEnumerable <Step> steps) where TOuterQuery : GremlinQueryBase, IGremlinQueryBase { foreach (var step in steps) { builder = builder.AddStep(step); } return(builder); }
public static FinalContinuationBuilder <TOuterQuery> AddSteps <TOuterQuery>(this FinalContinuationBuilder <TOuterQuery> builder, Traversal traversal) where TOuterQuery : GremlinQueryBase, IGremlinQueryBase { for (var i = 0; i < traversal.Count; i++) { builder = builder.AddStep(traversal[i]); } return(builder); }
public static FinalContinuationBuilder <TOuterQuery> WithNewProjection <TOuterQuery>(this FinalContinuationBuilder <TOuterQuery> builder, Projection newProjection) where TOuterQuery : GremlinQueryBase, IGremlinQueryBase => builder.WithNewProjection(static (_, newProjection) => newProjection, newProjection);