graphile / crystal-pre-merge

Repository moved
https://github.com/graphile/crystal
39 stars 10 forks source link

Add `assertNotAsync` assertion to planning #501

Open benjie opened 10 months ago

benjie commented 10 months ago

Currently it's only used when constructing a schema; but we should also use it during planning to detect async functions. And also detect promises and return a more useful error.

We should also maybe use it in graphile-build to detect the issue as early as possible.