query_result

Attribute Macro query_result 

Source
#[query_result]
Expand description

Represents a query result

ยงUsage

    use edgedb_query_derive::query_result;

    #[query_result]
    pub struct UserWithFriendAndFieldAndWrapperFn {
        pub id: uuid::Uuid,
        #[field(column_name="pseudo", wrapper_fn="str_upper", default_value="john")]
        pub login: String,
        pub identity: Identity,
        #[back_link(
            module="users",
            source_table="User",
            target_table="Friend",
            target_column="friend"
        )]
        pub friend: Friend,
    }