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.



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

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.



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

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.



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

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.



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

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)


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

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.



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

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.



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

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.



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

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.



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

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.



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

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)


179
180
181
# File 'lib/graphql/schema/warden.rb', line 179

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.



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

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.



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

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.



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

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)


183
184
185
# File 'lib/graphql/schema/warden.rb', line 183

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.



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

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.



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

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

#visible_enum_value?(enum_value, ctx = nil) ⇒ 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)


187
188
189
# File 'lib/graphql/schema/warden.rb', line 187

def visible_enum_value?(enum_value, ctx = nil)
  @warden.visible_enum_value?(enum_value, ctx)
end