Internal helpers — case conversion between Clojure (kebab-case keywords) and GraphQL (camelCase strings).
Internal helpers — case conversion between Clojure (kebab-case keywords) and GraphQL (camelCase strings).
(camel->kebab s)camelCaseName -> kebab-case-name.
camelCaseName -> kebab-case-name.
(camelize-keys x)Recursively convert all map keys to camelCase strings (for GraphQL variables).
Recursively convert all map keys to camelCase strings (for GraphQL variables).
(drop-nils m)Strip nil values from a map. Useful when forwarding optional GraphQL args.
Strip nil values from a map. Useful when forwarding optional GraphQL args.
(kebab->camel s)kebab-case-name -> kebabCaseName. Pass-through for strings without dashes.
kebab-case-name -> kebabCaseName. Pass-through for strings without dashes.
(kebabize-keys x)Recursively convert all map keys to kebab-case keywords (for response data).
Recursively convert all map keys to kebab-case keywords (for response data).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |