exAspArk / graphql-guard

Simple authorization gem for GraphQL :lock:
MIT License
471 stars 36 forks source link

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

Open sshaw opened 3 years ago

sshaw commented 3 years ago

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.