Module: GraphQL::Schema::AlwaysVisible
- Defined in:
- lib/graphql/schema/always_visible.rb
Class Method Summary collapse
-
.use(schema, **opts) ⇒ Object
: (singleton(GraphQL::Schema) schema, **untyped opts) -> void.
Instance Method Summary collapse
-
#visible?(_member, _context) ⇒ Boolean
: (untyped _member, GraphQL::Query::Context _context) -> bool.
Class Method Details
.use(schema, **opts) ⇒ Object
: (singleton(GraphQL::Schema) schema, **untyped opts) -> void
8 9 10 11 |
# File 'lib/graphql/schema/always_visible.rb', line 8 def self.use(schema, **opts) schema.use(GraphQL::Schema::Visibility, profiles: { nil => {} }) schema.extend(self) end |
Instance Method Details
#visible?(_member, _context) ⇒ Boolean
: (untyped _member, GraphQL::Query::Context _context) -> bool
14 15 16 |
# File 'lib/graphql/schema/always_visible.rb', line 14 def visible?(_member, _context) true end |