Skip navigation
Applications
  • Cvent Community
  • User profile
Skip navigation
logo
;

Search

Search
Loading...
Data & GraphQL

GraphQL query (client)

What this proves — Client-side Apollo useSuspenseQuery streams a query result into a Suspense boundary.

useSuspenseQuery reads through the ApolloProvider in the app layout, which the shell-expose build step also renders around the page when the shell embeds it.

GraphQL query response, fetched client-side.

{
  "__typename": "User",
  "id": "54321",
  "firstName": "John",
  "lastName": "Mayer",
  "email": "test.planner@cvent.test",
  "company": "Cvent"
}

Check out an implementation using React Server Components.