lib/graphql_role_restrict.rb
# register a new option `role_restrict`
register a new option `role_restrict`
register a new option ` role_restrict `
def to_graphql
    field_defn = super 
    field_defn.metadata[:role_restrict] = @role_restrict
    field_defn
  end
def to_graphql field_defn = super field_defn . metadata [ :role_restrict ] = @role_restrict field_defn end
register a new option `role_restrict`
register a new option ` role_restrict `
# Returns a GraphQL::Field