fn load<'a>(
        select: &LookAheadSelection<'_, WundergraphScalarValue>,
        selection: Option<&'_ [Selection<'_, WundergraphScalarValue>]>,
        executor: &Executor<'_, Ctx, WundergraphScalarValue>,
        query: BoxedQuery<'a, Self, DB, Ctx>,
    ) -> Result<Vec<juniper::Value<WundergraphScalarValue>>>
    where
        DB: HasSqlType<
            SqlTypeOfPlaceholder<Self::FieldList, DB, Self::PrimaryKeyIndex, Self::Table, Ctx>,
        >,
        Ctx: WundergraphContext + QueryModifier<Self, DB>,
        Ctx::Connection: Connection<Backend = DB>,
        DB::QueryBuilder: Default,
        <Self::Table as QuerySource>::FromClause: QueryFragment<DB>,
    {
        use diesel::RunQueryDsl;
        use juniper::LookAheadMethods;

        let ctx = executor.context();
        let conn = ctx.get_connection();
        let query = ctx.modify_query(select, query)?;
        #[cfg(feature = "debug")]
        {
            log::debug!("{:?}", diesel::debug_query(&query));
        }
        let placeholder = <_ as RunQueryDsl<_>>::load(query, conn)?;
        Ok(Self::FieldList::resolve(
            placeholder,
            select.arguments(),
            select,
            selection,
            Self::FIELD_NAMES,
            executor,
        )?)
    }
/// Main entry point to loading something from the database
///
/// The default implementation passes the final query to the
/// `QueryModifier`
Main entry point to loading something from the database
The default implementation passes the final query to the
`QueryModifier`
Main entry point to loading something from the database The default implementation passes the final query to the ` QueryModifier `
fn load<'a>(
        select: &LookAheadSelection<'_, WundergraphScalarValue>,
        selection: Option<&'_ [Selection<'_, WundergraphScalarValue>]>,
        executor: &Executor<'_, Ctx, WundergraphScalarValue>,
        query: BoxedQuery<'a, Self, DB, Ctx>,
    ) -> Result<Vec<juniper::Value<WundergraphScalarValue>>>
    where
        DB: HasSqlType<
            SqlTypeOfPlaceholder<Self::FieldList, DB, Self::PrimaryKeyIndex, Self::Table, Ctx>,
        >,
        Ctx: WundergraphContext + QueryModifier<Self, DB>,
        Ctx::Connection: Connection<Backend = DB>,
        DB::QueryBuilder: Default,
        <Self::Table as QuerySource>::FromClause: QueryFragment<DB>,
    {
        use diesel::RunQueryDsl;
        use juniper::LookAheadMethods;
        let ctx = executor.context();
        let conn = ctx.get_connection();
        let query = ctx.modify_query(select, query)?;
        #[cfg(feature = "debug")]
        {
            log::debug!("{:?}", diesel::debug_query(&query));
        }
        let placeholder = <_ as RunQueryDsl<_>>::load(query, conn)?;
        Ok(Self::FieldList::resolve(
            placeholder,
            select.arguments(),
            select,
            selection,
            Self::FIELD_NAMES,
            executor,
        )?)
    }
fn load < ' a > ( select : & LookAheadSelection < ' _ , WundergraphScalarValue > , selection : Option < & ' _ [ Selection < ' _ , WundergraphScalarValue > ] > , executor : & Executor < ' _ , Ctx , WundergraphScalarValue > , query : BoxedQuery < ' a , Self , DB , Ctx > , ) -> Result < Vec < juniper :: Value < WundergraphScalarValue > > > where DB : HasSqlType < SqlTypeOfPlaceholder < Self :: FieldList , DB , Self :: PrimaryKeyIndex , Self :: Table , Ctx > , > , Ctx : WundergraphContext + QueryModifier < Self , DB > , Ctx :: Connection : Connection < Backend = DB > , DB :: QueryBuilder : Default , < Self :: Table as QuerySource > :: FromClause : QueryFragment < DB > , { use diesel :: RunQueryDsl ; use juniper :: LookAheadMethods ; let ctx = executor . context ( ) ; let conn = ctx . get_connection ( ) ; let query = ctx . modify_query ( select , query ) ? ; # [ cfg ( feature " " ) ] { log :: debug ! ( " " diesel debug_query ( query ) ) ; } let placeholder = < _ as RunQueryDsl < _ > > :: load ( query , conn ) ? ; Ok ( Self :: FieldList :: resolve ( placeholder , select . arguments ( ) , select , selection , Self :: FIELD_NAMES , executor , ) ? ) }
Main entry point to loading something from the database
The default implementation passes the final query to the
`QueryModifier`
Main entry point to loading something from the database The default implementation passes the final query to the ` QueryModifier `
select
&LookAheadSelection<'_, WundergraphScalarValue>
selection
Option<&'_ [Selection<'_, WundergraphScalarValue>]>
executor
&Executor<'_, Ctx, WundergraphScalarValue>
query
BoxedQuery<'a, Self, DB, Ctx>