graphql-guard icon indicating copy to clipboard operation
graphql-guard copied to clipboard

Upgraded to 2.0: Parameter Hash Keys in a `field`'s Inline `guard` Were camelCase And Are Now snake_case

Open sshaw opened this issue 5 years ago • 0 comments

Was on 1.2.2, graphql 1.8.10 and just upgraded to 2.0 and graphql 1.11.5 and see that previously:

field :something_amaaaaazing, mutation: Mutations::Foo do
  guard -> (_, args, ctx) do
     # args[someThang] NOTE: camelCase
  end
end

to make that work now one must change someThang to some_thang.

sshaw avatar Oct 20 '20 20:10 sshaw