Liron Shapira

Results 10 comments of Liron Shapira

Thanks, it didn't cause that much trouble. I just got around to profiling my code now because I'm using derivable for a React Native app and it's getting close to...

``` init() { this.$avatarId = atom('batman') this.$avatarId.react(aid => { ajaxPost('setAvatarId', {avatarId: aid}) }, {skipFirst: true}) }, render() { return aid == 'batman'? 'superman' : 'batman')}> Toggle avatar } ```

@ggoodman Yeah if you want to implement throttling yourself, you first want to have a data model of the state of your requests, and represent it as state transitions. Then...

Ah ok, I agree it makes sense as a REPL feature because the semantics are too ambiguous for EdgeQL. I think it would be a very commonly used REPL feature,...

One thing that may be related to this is that I'm having trouble querying by enum value. This is the only way I can make it pass type checking: ```...

It might also be useful to have an idiomatic way to pass around object IDs in string form like `Movie.xxxxxx-xxxx-xxxx`. E.g. these kinds of typed IDs are used as cache...

I also think it might be a bit nicer to be able to write a Typescript command like `e.selectById(e.Movie, 'xxx-xxx-xxx', {title: true})` rather than using `movie => ({filter: e.op(movie.id, '=',...

For inserting/updating links, consider: ``` const myDirectorId = 'xxxx-xxxx-xxxx'; e.insert(e.Movie, { director: e.select(e.Director, director => ({ filter: e.op(director.id, '=', e.uuid(myDirectorId)), }) }).run(edgeClient) ``` vs something like ``` const myDirectorId =...

Related as a further syntactic sugar: https://github.com/edgedb/edgedb/issues/3810#issuecomment-1119942917 When writing a subquery select-by-id, it would be great if we had an even more compact syntax to refer to the linked entity...

String IDs without `e.uuid` seems good IMO, might just want to clarify the deal with the string allowed to have / not have dashes