Does prisma-bindings cache stuff somewhere?
# prisma-whats-new
n
Does prisma-bindings cache stuff somewhere?
n
n
Yes, tried that and it does not cache anymore. But what does that mean?
Shouldn't it only affect the same request?
n
that means there is currently a bug in
http-link-dataloader
around caching - might have misunderstood your initial request, can you elaborate?
n
I'm executing two separate requests. Caching in FB's dataloader should only affect caching withing the same request?
1. await db.query.users({}) 2. db.mutation.... 3. db.query
Nevertheless the above workaround "fixes" the issue.
So if i run
db.query.users({})
i get
[]
, then i create a new user, run
db.query.users({})
again and get
[]
, although there is a user in the database. (db is prisma-binding instance).
I have created a forum post to draw attention to this really bad issue: https://www.graph.cool/forum/t/urgent-one-cannot-update-any-data-in-prisma-that-was-read-once/2570
👍 1