Method: GraphQL::Query#document

Defined in:
lib/graphql/query.rb

#documentGraphQL::Language::Nodes::Document



65
66
67
68
69
70
71
72
# File 'lib/graphql/query.rb', line 65

def document
  # It's ok if this hasn't been assigned yet
  if @query_string || @document
    with_prepared_ast { @document }
  else
    nil
  end
end