-
Notifications
You must be signed in to change notification settings - Fork 146
Pass custom params to @cypher directive #187
Comments
Ah yes, this is something we wanted to add for exactly these kind of cases. How should this be configured? I'm not sure it would it make sense to add the entire context object, but maybe just add the entire |
Great! Thanks @johnymontana From my point of view, to make it flexible and independent, would be nice to add everything from
|
@EduardTrutsyk this is now implemented in v2.4.0. Could you give it a try? |
Everything works fine, good job guys! We can close #187 |
Not sure if I'm missing something, but just wanted to call out that the only way I can get it to work for a cypher statement attached to a user-defined query is like this:
I tried it without the |
Is it possible to pass custom params(for example
currentUserId
from the session) to@cypher
directive?I have
req.user
in context, and sometimes I need to write cypher query base on the current user id.The text was updated successfully, but these errors were encountered: