Skip to content

Add GraphQL integration docs for React Native SDK #17296

@sentry-junior

Description

@sentry-junior

Summary

The React Native SDK has supported graphqlIntegration() since v7.5.0, but there is no corresponding documentation page under docs.sentry.io/platforms/react-native/. The integration is undocumented for this platform, creating a gap for developers who need to capture GraphQL requests in React Native apps.

Background

  • graphqlIntegration was added to sentry-react-native in v7.5.0 via PR #5299 and is listed in the official changelog.
  • The underlying integration is shared from @sentry/javascript and already documented for other JS platforms (e.g. React Router has a GraphQL page).
  • docs.sentry.io/platforms/react-native/integrations/graphql/ currently 404s — no page exists for this integration.

Scope

  • Add a GraphQL integration docs page under platforms/react-native/ mirroring the structure of existing JS platform GraphQL pages.
  • Document how to configure graphqlIntegration() in a React Native app:
import * as Sentry from '@sentry/react-native';

Sentry.init({
  integrations: [Sentry.graphqlIntegration()],
});
  • Note any React Native-specific considerations (e.g. supported transports, HTTP client compatibility).

Implementation

  1. Review the existing GraphQL docs page for another JS platform (e.g. React Router) as a reference.
  2. Create docs/platforms/react-native/integrations/graphql.mdx (or equivalent path) with the appropriate frontmatter and content.
  3. Verify the new page appears in the React Native integrations nav.

Action taken on behalf of Chris Stavitsky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions