progress on combining foreign_node_completer and relation_completer

This commit is contained in:
Sascha Kühl
2025-12-05 15:38:35 +01:00
parent 98da0884f1
commit 2e354b435c
20 changed files with 195 additions and 108 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ struct book {
namespace field = matador::access;
field::primary_key( op, "id", id );
field::attribute( op, "title", title, 511 );
field::has_one( op, "author_id", book_author, matador::utils::default_foreign_attributes );
field::has_one( op, "author_id", book_author, matador::utils::CascadeNoneFetchLazy );
field::attribute( op, "published_in", published_in );
}
};
@@ -89,7 +89,7 @@ struct job {
void process( Operator& op ) {
namespace field = matador::access;
field::primary_key( op, "id", id );
field::belongs_to( op, "payload", data, matador::utils::default_foreign_attributes );
field::belongs_to( op, "payload", data, matador::utils::CascadeNoneFetchLazy );
field::attribute( op, "type", type, 511 );
field::attribute( op, "description", description, 511 );
field::attribute( op, "state", state );