fn apply_limit<'a>(
        query: BoxedQuery<'a, Self, DB, Ctx>,
        select: &LookAheadSelection<'_, WundergraphScalarValue>,
    ) -> Result<BoxedQuery<'a, Self, DB, Ctx>> {
        use juniper::LookAheadMethods;
        if let Some(limit) = select.argument("limit") {
            Ok(<_ as LimitDsl>::limit(
                query,
                i64::from_look_ahead(limit.value())
                    .ok_or(WundergraphError::CouldNotBuildFilterArgument)?,
            ))
        } else {
            Ok(query)
        }
    }
/// Construct a limit clause from a given graphql request
Construct a limit clause from a given graphql request
Construct a limit clause from a given graphql request
fn apply_limit<'a>(
        query: BoxedQuery<'a, Self, DB, Ctx>,
        select: &LookAheadSelection<'_, WundergraphScalarValue>,
    ) -> Result<BoxedQuery<'a, Self, DB, Ctx>> {
        use juniper::LookAheadMethods;
        if let Some(limit) = select.argument("limit") {
            Ok(<_ as LimitDsl>::limit(
                query,
                i64::from_look_ahead(limit.value())
                    .ok_or(WundergraphError::CouldNotBuildFilterArgument)?,
            ))
        } else {
            Ok(query)
        }
    }
fn apply_limit < ' a > ( query : BoxedQuery < ' a , Self , DB , Ctx > , select : & LookAheadSelection < ' _ , WundergraphScalarValue > , ) -> Result < BoxedQuery < ' a , Self , DB , Ctx > > { use juniper :: LookAheadMethods ; if let Some ( limit ) = select . argument ( " " ) { Ok ( < _ as LimitDsl > :: limit ( query , i64 :: from_look_ahead ( limit . value ( ) ) . ok_or ( WundergraphError :: CouldNotBuildFilterArgument ) ? , ) ) } else { Ok ( query ) } }
Construct a limit clause from a given graphql request
Construct a limit clause from a given graphql request
query
BoxedQuery<'a, Self, DB, Ctx>
select
&LookAheadSelection<'_, WundergraphScalarValue>