with memory db

This commit is contained in:
2022-10-04 22:39:57 +02:00
parent c7f8dc6198
commit 1d4cda7c48
13 changed files with 326 additions and 14 deletions

18
como_gql/src/projects.rs Normal file
View 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,
}
}
}