You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i get an error when using async_graphql to return a seaorm model from two routes: thread 'main' panicked at: 'entity::user::Model' and 'entity::config::Model' have the same GraphQL name 'Model'
The text was updated successfully, but these errors were encountered:
add this to your model
#[graphql(name = "GenericLiterateCategory")]
#[derive(Clone,Debug,PartialEq,DeriveEntityModel,Eq,Serialize,Deserialize,SimpleObject)]#[sea_orm(schema_name = "public", table_name = "posts")]#[graphql(name = "Post")]// <- this makes GraphQL recognize Model to Post EntitypubstructModel{#[sea_orm(primary_key, auto_increment = false)]pubid:Uuid,pubtitle:String,pubcreated_by:Option<Uuid>,pubupdated_by:Option<Uuid>,pubcreated_at:Option<DateTime>,pubupdated_at:Option<DateTime>,pubsync_at:Option<DateTime>,pubdeleted_at:Option<DateTime>,}
i get an error when using async_graphql to return a seaorm model from two routes:
thread 'main' panicked at: 'entity::user::Model' and 'entity::config::Model' have the same GraphQL name 'Model'
The text was updated successfully, but these errors were encountered: