ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.24k stars 744 forks source link

Caching documentation isn't up to date #5543

Open romarro opened 1 year ago

romarro commented 1 year ago

Is there an existing issue for this?

Describe the bug

In the documentation of the caching mechanism, there is GetSession which isn't implemented in the V12.13.2. There is only a watch function implemented in the interface. But it isn't clear if we still have to have a reference to the session Disposable

Here is the link to the file:

https://github.com/ChilliCream/hotchocolate/blob/bbfc832472e9a4630db4a4883a939e2a760375d1/website/src/docs/strawberryshake/v12/caching/index.md?plain=1#L58

Steps to reproduce

  1. Go to Documentation
  2. if you try to implement the piece of code will not work due to the fact that GetSession isn't implemented anymore

Relevant log output

there isn't a relevant output

Additional Context?

Modify the Documentation

Product

Strawberry Shake

Version

12.13.2

michaelstaib commented 1 year ago

GetSession in this example is a generated piece ... this might have a totally different name in your schema.