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

Ability to transform keywords with custom fn #26

Open
madvas opened this issue Mar 8, 2018 · 0 comments
Open

Ability to transform keywords with custom fn #26

madvas opened this issue Mar 8, 2018 · 0 comments

Comments

@madvas
Copy link

madvas commented Mar 8, 2018

Let's say I have query like this:

(v/graphql-query {:venia/queries [[:employee [:employee/name :employee/first-name]]]})
;; => "{employee{name,first-name}}"

Which of course isn't correct graphql syntax and I lost keyword namespaces as well.

Would be great if I could configure venia with custom munge function, so I can transform keywords in my own way.
One example how one might want to munge names to preserve keywords and correct syntax might look like this:

(v/graphql-query {:venia/queries [[:employee [:employee/name :employee/first-name]]]})
;; => "{employee{employee_name,employee_firstName}}"
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

No branches or pull requests

1 participant