Files
nhost/integrations/react-apollo
github-actions[bot] 9790bcfe3e chore: update versions (#3421)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @nhost/hasura-storage-js@2.9.0

### Minor Changes

- 2f5bc04: fix (hasura-storage-js/docs): use correct way of specifying
metadata\[] in formData

## @nhost/apollo@9.0.1

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost/react-apollo@18.0.2

### Patch Changes

-   @nhost/apollo@9.0.1
-   @nhost/react@3.11.2

## @nhost/react-urql@15.0.2

### Patch Changes

-   @nhost/react@3.11.2

## @nhost/nextjs@2.3.1

### Patch Changes

-   @nhost/react@3.11.2

## @nhost/nhost-js@3.3.1

### Patch Changes

-   Updated dependencies [2f5bc04]
    -   @nhost/hasura-storage-js@2.9.0

## @nhost/react@3.11.2

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost/vue@2.9.8

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost/dashboard@2.35.0

### Minor Changes

-   7633d04: feat (dashbord): Allow composite primary keys
-   c4f383f: fix: dashboard: don't allow for upgrading to starter
- 4c6400f: fix: handle redirect to verify email page if sign in with
github
-   7f0db21: feat: added entraid support
-   412692c: chore (dashboard): Turn on strictNullChecks config

### Patch Changes

- 1708578: fix (dashboard): Update navbar after org and project
operations
-   34ede5c: fix: enable csp again
-   96228df: chore (dashboard): update nhost-js to the latest version
-   d8c5117: fix (dashboard): Allow creating tables without primary key
-   89f6fe6: chore (docker-example): update dashboard image version
- e8a3789: fix (dashboard): scroll to active element in navbar when
navigating

## @nhost/docs@2.35.0

### Minor Changes

- 2f5bc04: fix (hasura-storage-js/docs): use correct way of specifying
metadata\[] in formData
-   7f0db21: feat: added entraid support

### Patch Changes

-   06b47e0: fix: fixes to changes in mintlify breaking our docs
-   d98e73e: fix: workaround for mintlify breaking our docs again

## @nhost-examples/node-storage@0.3.0

### Minor Changes

- 2f5bc04: fix (hasura-storage-js/docs): use correct way of specifying
metadata\[] in formData

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost-examples/cli@0.3.24

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost-examples/codegen-react-apollo@0.9.1

### Patch Changes

-   @nhost/react@3.11.2
-   @nhost/react-apollo@18.0.2

## @nhost-examples/codegen-react-query@0.9.1

### Patch Changes

-   @nhost/react@3.11.2

## @nhost-examples/codegen-react-urql@0.8.1

### Patch Changes

-   @nhost/react@3.11.2
-   @nhost/react-urql@15.0.2

## @nhost-examples/docker-compose@0.4.1

### Patch Changes

-   89f6fe6: chore (docker-example): update dashboard image version

## @nhost-examples/multi-tenant-one-to-many@2.2.25

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost-examples/nextjs@0.5.1

### Patch Changes

-   @nhost/react@3.11.2
-   @nhost/react-apollo@18.0.2
-   @nhost/nextjs@2.3.1

## @nhost-examples/nextjs-server-components@0.7.1

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost-examples/sveltekit@0.8.3

### Patch Changes

-   @nhost/nhost-js@3.3.1

## @nhost-examples/react-apollo@1.6.3

### Patch Changes

-   @nhost/react@3.11.2
-   @nhost/react-apollo@18.0.2

## @nhost-examples/react-gqty@1.6.3

### Patch Changes

-   @nhost/react@3.11.2

## @nhost-examples/react-native@0.1.11

### Patch Changes

-   @nhost/react@3.11.2
-   @nhost/react-apollo@18.0.2

## @nhost-examples/vue-apollo@0.12.3

### Patch Changes

-   @nhost/nhost-js@3.3.1
-   @nhost/apollo@9.0.1
-   @nhost/vue@2.9.8

## @nhost-examples/vue-quickstart@0.6.3

### Patch Changes

-   @nhost/apollo@9.0.1
-   @nhost/vue@2.9.8

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-29 16:48:22 +02:00
..
2023-03-23 12:30:14 +01:00
2025-08-29 16:48:22 +02:00
2025-08-29 16:48:22 +02:00

@nhost/react-apollo

For easy usage of Apollo and React

npm npm license: MIT

Documentation

Reference documentation

Install

$ npm install @nhost/react-apollo @nhost/react @apollo/client graphql react react-dom

or

$ yarn add @nhost/react-apollo @nhost/react @apollo/client graphql react react-dom

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import { NhostClient, NhostProvider } from '@nhost/react'
import { NhostApolloProvider } from '@nhost/react-apollo'

import App from './App'

const nhost = new NhostClient({
  subdomain: '<Your Nhost project subdomain>',
  region: '<Your Nhost project region>'
})

ReactDOM.render(
  <React.StrictMode>
    <NhostProvider nhost={nhost}>
      <NhostApolloProvider nhost={nhost}>
        <App />
      </NhostApolloProvider>
    </NhostProvider>
  </React.StrictMode>,
  document.getElementById('root')
)