pub fn read_ids_infallible<T>(model: ModelRef, projection: ModelProjection, filter: T) -> Query
where
    T: Into<Filter>,
{
    let selected_fields = get_selected_fields(&model, projection);
    let filter: Filter = filter.into();

    let read_query = ReadQuery::ManyRecordsQuery(ManyRecordsQuery {
        name: "read_ids_infallible".into(), // this name only eases debugging
        alias: None,
        model: model.clone(),
        args: (model, filter).into(),
        selected_fields,
        nested: vec![],
        selection_order: vec![],
    });

    Query::Read(read_query)
}
/// Produces a non-failing read query that fetches the requested projection of records for a given filterable.
Produces a non-failing read query that fetches the requested projection of records for a given filterable.
Produces a non - failing read query that fetches the requested projection of records for a given filterable .
pub fn read_ids_infallible<T>(model: ModelRef, projection: ModelProjection, filter: T) -> Query
where
    T: Into<Filter>,
{
    let selected_fields = get_selected_fields(&model, projection);
    let filter: Filter = filter.into();
    let read_query = ReadQuery::ManyRecordsQuery(ManyRecordsQuery {
        name: "read_ids_infallible".into(), // this name only eases debugging
        alias: None,
        model: model.clone(),
        args: (model, filter).into(),
        selected_fields,
        nested: vec![],
        selection_order: vec![],
    });
    Query::Read(read_query)
}
pub fn read_ids_infallible < T > ( model : ModelRef , projection : ModelProjection , filter : T ) -> Query where T : Into < Filter > , { let selected_fields = get_selected_fields ( & model , projection ) ; let filter : Filter = filter . into ( ) ; let read_query = ReadQuery :: ManyRecordsQuery ( ManyRecordsQuery { name : " " . into ( ) , // this name only eases debugging alias : None , model : model . clone ( ) , args : ( model , filter ) . into ( ) , selected_fields , nested : vec ! [ ] , selection_order : vec ! [ ] , } ) ; Query :: Read ( read_query ) }
Produces a non-failing read query that fetches the requested projection of records for a given filterable.
Produces a non - failing read query that fetches the requested projection of records for a given filterable .
model
ModelRef
projection
ModelProjection
filter
T
model
ModelRef
projection
ModelProjection
filter
T