module GraphQL::Schema::Member::HasAstNode
Public Instance Methods
ast_node(new_ast_node = nil)
click to toggle source
If this schema was parsed from a `.graphql` file (or other SDL), this is the AST node that defined this part of the schema.
# File lib/graphql/schema/member/has_ast_node.rb, line 8 def ast_node(new_ast_node = nil) if new_ast_node @ast_node = new_ast_node elsif defined?(@ast_node) @ast_node else nil end end