Skip to content

Instantly share code, notes, and snippets.

@xuorig
Created June 10, 2017 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuorig/1f05d843f60e8890b15cc080934a22fa to your computer and use it in GitHub Desktop.
Save xuorig/1f05d843f60e8890b15cc080934a22fa to your computer and use it in GitHub Desktop.
GraphQL::ObjectType.define do
name "Person"
field :name, types.String
field :bankAccount, BankAccount do
visibility ->(ctx) { ctx[:current_user].bank_account_access? }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment