﻿---
title: GraphQL
description: The agent comes with support for GraphQL based APIs. This slightly alters how transactions are named when they relate to GraphQL queries, so they are...
url: https://www.elastic.co/elastic/docs-builder/docs/2439/reference/apm/agents/ruby/graphql

This applies to:
- Generally available for Serverless Observability
- Generally available in 9.0+ for Stack
- Generally available in 4.0+ for APM Agent Ruby
---

# GraphQL
The agent comes with support for GraphQL based APIs.
This slightly alters how transactions are named when they relate to GraphQL queries, so they are easier to tell apart and debug.
To enable GraphQL support, add the included Tracer to your schema:
```ruby
class MySchema < GraphQL::Schema
  # ...

  tracer ElasticAPM::GraphQL
end
```