Created
June 10, 2017 14:23
-
-
Save xuorig/1f05d843f60e8890b15cc080934a22fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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