Kjell-Olaf

Results 7 comments of Kjell-Olaf

You can access the context by using ``` type{ property(Post::id){ accessRule { post, ctx -> if(post.id == ctx.get()) null else IllegalAccessException() } } } ``` and ``` query("black_mamba") { resolver...

> Is this about mutations? Both, it's about accessing properties in each query/mutation. When using the first example I gave, the access rule applies to all queries/mutations to that type....

Just to clarify, the rails store works as intended and store attributes are inherited properly there. The issue here is that when you define more than one store the previous...

> I think first we should fix the test suite that is failing because of the YAML changes in Rails. I'll see if I can find time to fix the...

Given your model is `Post` you can use `Post.encode_id(ids)`, it takes either a single id or an array of ids. `decode_id` also exist for other way around