crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Figure out a way to prevent steps depending on "opaque" steps

Open benjie opened this issue 1 year ago • 2 comments

e.g. $pgSelectSingle -> $pgSelectSingle.record() when requested through a non-@dataplan/pg class, to avoid user confusion.

Alternatively, make opaque steps even more opaque, e.g. create an opaque wrapper object that has hidden non-enumerable key containing the actual data.

benjie avatar Jan 10 '25 13:01 benjie

This should also be used when handing from plan-space to resolver-space; e.g. if you have a const $user = users.get({ ... }) and then you have a resolver on the User type then you should be given the full User record rather than a meaningless tuple.

benjie avatar Jul 13 '25 14:07 benjie

Punted to V6.

benjie avatar Sep 15 '25 10:09 benjie