-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested create #44
Comments
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, 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. |
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:
The text was updated successfully, but these errors were encountered: