module GraphQL::Schema::Member::HasPath
Public Instance Methods
Source
# File lib/graphql/schema/member/has_path.rb, line 16 def path member = self #: untyped path_str = if member.respond_to?(:graphql_name) member.graphql_name elsif self.class.respond_to?(:graphql_name) # Instances of resolvers self.class.graphql_name end if member.respond_to?(:owner) && member.owner.respond_to?(:path) path_str = "#{member.owner.path}.#{path_str}" end path_str end
Returns
-
Stringβ A description of this memberβs place in theGraphQLschema