pub struct User {
pub _id: ObjectId,
pub email: String,
pub username: String,
pub cred...: String,
}
#[async_graphql::Object]
impl User {
pub async fn id(&self) -> ObjectId {
......, Debug)]
pub struct User {
pub _id: ObjectId,
pub email: String,
pub username: String,...{
pub _id: ObjectId,
pub email: String,
pub username: String,
pub cred: String,
}
#...struct User {
pub _id: ObjectId,
pub email: String,
pub username: String,
pub cred: String