Open Brendonovich opened 2 years ago
Hi! Is this feature in development or planned to be shipped recently? I am using this library to integrate with MongoDB, so nested creation is an essential feature to support my development.
I can see from the code, FieldTypeExt
has not supported type(sub-docuemnt) for now.
Open to contributing some code here!
From what I understand about MongoDB, I think you're referring to composite types. These are being tracked in #82. This issue is for creating records for a relation in a relational DB. Check #128 for the status on MongoDB support.
Hello, any update on this? Will there be any estimated date for this? Thanks.
@linsijia628 Nothing yet. Rest assured I'm aware of it.
still got a lot to go but the types for these are completed
client.user().create(
"Brendan".to_string(),
vec![user::posts::connect(vec![
post::id::equals("0".to_string()),
post::id::equals("1".to_string()),
])],
);
client.user().create(
"Brendan".to_string(),
vec![user::posts::create_many(vec![
user::posts::create("Brendan".to_string(), false, vec![]),
user::posts::create("Brendan".to_string(), true, vec![]),
])],
);
client.user().create(
"Brendan".to_string(),
vec![user::posts::connect_or_create([
(
post::id::equals("bruh".to_string()),
user::posts::create("Brendan".to_string(), false, vec![]),
),
(
post::id::equals("bruh".to_string()),
user::posts::create("Brendan".to_string(), true, vec![]),
),
])],
);
The following should be possible: