Logo
Explore Help
Sign In
joe/kami-parse-server
Public Access
1
0
Fork 0
You've already forked kami-parse-server
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
431cb94ae3a41c950f3dbf13163804c369c9ed91
kami-parse-server/src/GraphQL/transformers/className.js

9 lines
223 B
JavaScript
Raw Normal View History

GraphQL: Renaming Types/Inputs (#5883) * Renaming GraphQL Types/Inputs * Add Native Type to avoid collision * Use pluralize for renaming * Fixing tests * Improve name collision management - tests passsing * Renaming few more default types * Rename file input * Reverting fields types to not collide with the relay spec types Improver users mutations * Adding ArrayResult to the reserved list * Fixing tests * Add more unit tests to ParseGraphQLSchema * Test transformClassNameToGraphQL * Name collision tests
2019-08-15 23:23:41 +02:00
const transformClassNameToGraphQL = className => {
if (className[0] === '_') {
className = className.slice(1);
}
return className[0].toUpperCase() + className.slice(1);
};
export { transformClassNameToGraphQL };
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 609ms Template: 28ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API