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.16k stars 736 forks source link

Banana Cake Pop schema cache isn't namespaced #3147

Open atrauzzi opened 3 years ago

atrauzzi commented 3 years ago

Description

Banana Cake Pop caches data to IndexDB:

image

Unfortunately, those databases are shared per-domain, so if I configure two APIs:

image image

...I can only effectively use Banana Cake Pop for the first one I visit.

Steps

Steps to reproduce the behavior:

  1. Configure two or more APIs on the same host/origin (one where the IndexDBs will collide)
  2. Visit Banana Cake Pop for the first API, should work normally.
  3. Visit Banana Cake Pop for the second API
    • Despite the URI being different, it will act like it has the schema from the first API you visited

Expected

Banana Cake Pop should be able to support multiple schemas hosted from a single host/origin.


My guess is that the solution would be to add some kind of prefix or namespace to how you store Banana Cake Pop data in the browser. :slightly_smiling_face:

atrauzzi commented 2 years ago

Not stale.

Drekzler commented 2 years ago

Not stale.

cleferman commented 2 months ago

Is there any workaround to this at the moment?

rstaib commented 2 months ago

Could anybody do a screen recording and show me what the problem is? also I would like to see the endpoints. Thank you in advance.