Skip to content
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

fix: tests after occ and ref integrity changes #3213

Merged
merged 1 commit into from Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -334,11 +334,11 @@ mod one2many_req {

// Linking field updated but no child connected: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u2" }) { count }}"#),
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u22" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
);

// Child connected but no linking field updated: works
// No child connected and no linking field updated: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { name: "Alice2" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
Expand Down Expand Up @@ -476,11 +476,11 @@ mod one2many_opt {

// Linking field updated but no child connected: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u2" }) { count }}"#),
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u22" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
);

// Child connected but no linking field updated: works
// No connected and no linking field updated: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { name: "Alice2" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
Expand Down