Module: GraphitiGraphQL::Federation::ResourceDSL

Extended by:
ActiveSupport::Concern
Defined in:
lib/graphiti_graphql/federation/resource_dsl.rb

Defined Under Namespace

Classes: TypeProxy

Instance Method Summary collapse

Instance Method Details

#gql?Boolean

Certain attributes should only work in GQL context

Returns:

  • (Boolean)


119
120
121
# File 'lib/graphiti_graphql/federation/resource_dsl.rb', line 119

def gql?
  Graphiti.context[:graphql]
end