Skip to content

Fix function name that camel to snake - #332

Merged
robjtede merged 1 commit into
actix:masterfrom
dyoshikawa:fix-camel-to-snake
Jun 17, 2020
Merged

Fix function name that camel to snake#332
robjtede merged 1 commit into
actix:masterfrom
dyoshikawa:fix-camel-to-snake

Conversation

@dyoshikawa

Copy link
Copy Markdown
Contributor

Juniper crate can interconvert a GraphQL camel function and a Rust snake function.
So a function name in Rust should be snake case.
Actually, functions are written by snake case in juniper-advenced.

https://github.com/actix/examples/blob/master/juniper-advanced/src/schemas/root.rs#L104

@dyoshikawa dyoshikawa changed the title fix function name that camel to snake Fix function name that camel to snake Jun 16, 2020

@robjtede robjtede left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for the contribution 👍

@robjtede
robjtede merged commit 5b3c996 into actix:master Jun 17, 2020
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.

2 participants