with memory db
This commit is contained in:
18
como_gql/src/projects.rs
Normal file
18
como_gql/src/projects.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use async_graphql::SimpleObject;
|
||||
use como_domain::projects::ProjectDto;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(SimpleObject)]
|
||||
pub struct Project {
|
||||
pub id: Uuid,
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl From<ProjectDto> for Project {
|
||||
fn from(dto: ProjectDto) -> Self {
|
||||
Self {
|
||||
id: dto.id,
|
||||
name: dto.name,
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user