-
Notifications
You must be signed in to change notification settings - Fork 1
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
use surreal variable into query #18
Comments
Hi @josselinchevalay, did you check the logs in the data query view? Or are there any error messages in the web console to provide more context to this issue? Thx 🙏 |
sure here you can see explore test same request into explore with inspect console open : on grafan server i don,t see any error but this request on my surreal db respond 2081 lines i don't understand. Maybe grafana respond directly after the LET STATEMENTS and not return the result of my seconds request |
qucik update i use http cli like postman when i execute my script :
i receive it
so i think by default we use only je first occurence of respond object but here we need to use the second |
Ah I see, yes makes sense ... so maybe we could consider in the plugin only to evaluate/return the last result set. Would be a rather small insertion into the code base. Are you by change familiar with golang and do want maybe to make your first contribution in this effort? 😃 |
helas, i'm not too golang developer i suppose the change is in datasource.go or something in this taste but locally i donn't have tools to develop under golang |
or better into grafana.surrealdb/pkg/plugin/datasource.go Line 600 in f1681f3
i guess |
When we have a request with IF and LET statements get last result elements fiskaly#18
let me know is ok for you |
did you upgrade to surrealdb v2 ? |
@coutouly i tested with v2 of surreal i continue to have an array where each line of my script return an json line of this array with result etc is more link how we consume this array of response |
Hello,
i need to create a complex request with variable and if also:
into surreal db LET / IF statements exists LET statement / if statement
but if i use my example query on section explore of grafana with surreal db source i don,t see anything
do you have an idea ?
The text was updated successfully, but these errors were encountered: