expo / expo/entity

Add a way to record isolated operations

Open
#48 1 comment 0 reactions 1 assignee Claimed by @wschurman View on GitHub
Dominant language
TypeScript
Stars
162
Forks
11
Avg merge
18h 3m
Merged PRs (30d)
19

Description

While debugging, it would be useful to be able to get information about entity loads/mutations/etc to see things like:
- If it hit the DB, what was the query run
- If it hit or wrote to the cache, what were the cache keys used
- If it only went to the dataloader, indicate as such
- etc...

An API for this could look something like:
```typescript
const [queryContextAuditResult, entityResultFromInnerBlock] = await withIsolatedQueryContext(async (queryContext) => {
return await BlahEntity.loader(viewerContext, queryContext).load(...);
});
console.log(queryContextAuditResult);

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.