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

feat: add push scalar list operation for update #1753

Merged
merged 6 commits into from
Mar 22, 2021
Merged

Conversation

Weakky
Copy link
Member

@Weakky Weakky commented Mar 18, 2021

@Weakky Weakky added this to the 2.20.0 milestone Mar 18, 2021
// .map(|f| self.model().fields().find_from_scalar(f.as_str()).unwrap())
// .collect()
// }
// } else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a leftover from the mongo PR, can be removed if you have time.

@@ -168,7 +196,62 @@ class ScalarListsSpec extends FlatSpec with Matchers with ApiSpecBase {
|}""",
project = project,
errorCode = 2009,
errorContains = """`Mutation.createScalarModel.data.ScalarModelCreateInput.strings.ScalarModelCreatestringsInput.set`: A value is required but not set."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unexpected, how did the default type flip for Creates?

model_name: String,
input_object_name: T,
f: ScalarFieldRef,
include_set_only: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to distinguish between update and create operation sets, then I suggest naming it accordingly.
is_create or similar, for example.

@Weakky Weakky merged commit 043ecf8 into master Mar 22, 2021
@Weakky Weakky deleted the feat/scalar-list-push branch March 22, 2021 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a push method to scalar list update input in addition to set
2 participants