Skip to content

Instantly share code, notes, and snippets.

@cjoudrey
Created July 10, 2017 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjoudrey/52d34fd364cc1d973f5cbd105ce215bf to your computer and use it in GitHub Desktop.
Save cjoudrey/52d34fd364cc1d973f5cbd105ce215bf to your computer and use it in GitHub Desktop.
file = File.open('graph.dot', 'w')
CodeMapper.trace(filter: /^GraphQL/, start_at: 'GraphQL::Query.valid?',
max_depth: 4, output: CodeMapper::Output::Dot.new(file)) do
ExampleGraphQLSchema.execute(query_string)
end
file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment