Module: ObjectToGraphQL

Defined in:
lib/object_to_graphql.rb,
lib/object_to_graphql/nodes.rb,
lib/object_to_graphql/version.rb,
lib/object_to_graphql/object_parser.rb

Defined Under Namespace

Modules: Nodes Classes: ObjectParser

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.generate(object, arguments = [], variables = []) ⇒ Object



15
16
17
18
# File 'lib/object_to_graphql.rb', line 15

def self.generate(object, arguments = [], variables = [])
  document = ObjectParser.parse(object, arguments, variables)
  document.to_query_string.lstrip
end