Class: GraphQL::Schema::Warden::VisibilityProfile Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/warden.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(warden) ⇒ VisibilityProfile

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of VisibilityProfile.



112
113
114
# File 'lib/graphql/schema/warden.rb', line 112

def initialize(warden)
  @warden = warden
end

Instance Method Details

#all_typesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



164
165
166
# File 'lib/graphql/schema/warden.rb', line 164

def all_types
  @warden.reachable_types
end

#argument(owner, arg_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



132
133
134
# File 'lib/graphql/schema/warden.rb', line 132

def argument(owner, arg_name)
  @warden.get_argument(owner, arg_name)
end

#arguments(owner) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



148
149
150
# File 'lib/graphql/schema/warden.rb', line 148

def arguments(owner)
  @warden.arguments(owner)
end

#directive_exists?(dir_name) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


120
121
122
# File 'lib/graphql/schema/warden.rb', line 120

def directive_exists?(dir_name)
  @warden.directives.any? { |d| d.graphql_name == dir_name }
end

#directivesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



116
117
118
# File 'lib/graphql/schema/warden.rb', line 116

def directives
  @warden.directives
end

#enum_values(enum_type) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



160
161
162
# File 'lib/graphql/schema/warden.rb', line 160

def enum_values(enum_type)
  @warden.enum_values(enum_type)
end

#field(owner, field_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



128
129
130
# File 'lib/graphql/schema/warden.rb', line 128

def field(owner, field_name)
  @warden.get_field(owner, field_name)
end

#fields(owner) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



152
153
154
# File 'lib/graphql/schema/warden.rb', line 152

def fields(owner)
  @warden.fields(owner)
end

#interfaces(obj_type) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



168
169
170
# File 'lib/graphql/schema/warden.rb', line 168

def interfaces(obj_type)
  @warden.interfaces(obj_type)
end

#loadable?(t, ctx) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

TODO remove ctx here?

Returns:

  • (Boolean)


172
173
174
# File 'lib/graphql/schema/warden.rb', line 172

def loadable?(t, ctx) # TODO remove ctx here?
  @warden.loadable?(t, ctx)
end

#mutation_rootObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



140
141
142
# File 'lib/graphql/schema/warden.rb', line 140

def mutation_root
  @warden.root_type_for_operation("mutation")
end

#possible_types(type) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



156
157
158
# File 'lib/graphql/schema/warden.rb', line 156

def possible_types(type)
  @warden.possible_types(type)
end

#query_rootObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



136
137
138
# File 'lib/graphql/schema/warden.rb', line 136

def query_root
  @warden.root_type_for_operation("query")
end

#reachable_type?(type_name) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


176
177
178
# File 'lib/graphql/schema/warden.rb', line 176

def reachable_type?(type_name)
  !!@warden.reachable_type?(type_name)
end

#subscription_rootObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



144
145
146
# File 'lib/graphql/schema/warden.rb', line 144

def subscription_root
  @warden.root_type_for_operation("subscription")
end

#type(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



124
125
126
# File 'lib/graphql/schema/warden.rb', line 124

def type(name)
  @warden.get_type(name)
end