Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to invoke node methods #240

Open
nmeri17 opened this issue Aug 1, 2022 · 2 comments
Open

How to invoke node methods #240

nmeri17 opened this issue Aug 1, 2022 · 2 comments

Comments

@nmeri17
Copy link

nmeri17 commented Aug 1, 2022

The examples and wiki show how to retrieve properties from nodes in the dataset using either data(property) or data(pivotProperty.targetProperty) but makes no mention of how to obtain values computed from methods e.g. Throwable->getMessage(), model->relation()->property. Putting either of the two in data breaks the parser. I also can't do data(exception)->getMessage()

@nbish11
Copy link

nbish11 commented Aug 4, 2022

I believe you can call methods without parentheses like data(myObject.classMethod), but I haven't tested it yet.

@nmeri17
Copy link
Author

nmeri17 commented Aug 11, 2022

I believe you can call methods without parentheses like data(myObject.classMethod), but I haven't tested it yet.

Hey, man. Thanks for trying to help. I saw your response but I'd bricked the markup rendering part of my project, so I was unable to confirm and return feedback. I just tried your suggestion today and it didn't work. Same as the other alternatives posted in OP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants