-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Improve callCloudCode mutation to receive a CloudCodeFunction enum instead of a String #6029
Improve callCloudCode mutation to receive a CloudCodeFunction enum instead of a String #6029
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6029 +/- ##
==========================================
- Coverage 93.91% 93.91% -0.01%
==========================================
Files 164 164
Lines 11084 11110 +26
==========================================
+ Hits 10410 10434 +24
- Misses 674 676 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add tests for less conventional cloud function names, such as "double-barrelled"
, "_underscored"
. "contains1Number"
etc - I suspect GraphQL ENUM
type might have some issues with those
@omairvaiyani I added some tests with weird names and I also improved the code to check the function name and warn in the case it can not be used in the GraphQL Schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
I actually heavily use |
@omairvaiyani what do you think about removing the |
@davimacedo I have a mild preference for replacing |
Nice. I've just added a task to the GraphQL project. |
…stead of a String (parse-community#6029) * Add listing test * Improvements * Fixinf package.json * Fix package.json * Fix tests
No description provided.