Back

GraphQL SSR session

  • 0
  • GraphQL
  • Web
  • Cloud
Criffis
23 Mar, 2024, 22:47

Hey there. I'm sorry if this a dumb question, since I'm new to both SSR and GraphQL, but how would I create a GraphQL instance with the new SSR authentication method that you are creating over here?

https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-3

Do I need to somehow squeeze an

export const graphql = new Graphql(client);

inside the createSessionClient?

And how exactly would I need to call this GraphQL instance when fetching inside a component/page?

(I am aware this is still unreleased for cloud)

Many thanks!

TL;DR
Developers are looking to implement GraphQL SSR session authentication. They are inquiring about creating a GraphQL instance with the new SSR authentication method found in a specific resource. The solution provided is to export a GraphQL instance within the `createSessionClient`. However, it is highlighted that the feature discussed is not yet available for use on the cloud.
Steven
23 Mar, 2024, 22:49

1.5 is not on cloud yet so you can't use any of the 1.5 features or an SDK meant for 1.5

Criffis
23 Mar, 2024, 22:51

Thanks, so will there be a graphQL example for cloud when 1.5 is released?

Criffis
23 Mar, 2024, 22:56

Auth SSR with graphQL I mean

Steven
23 Mar, 2024, 22:58

The only special/new thing is SSR for authentication and setting of a client that can make authenticated API calls. After that, everything is the same with 1.4

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more