-
Hi, from the admin panel, in the "Queries" section, I wrote this query Can somebody help me? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
The idea is to use the user query in the "Workflows" section, any ideas? 🤔 Or I need to implement a custom controller? |
Beta Was this translation helpful? Give feedback.
-
You can use this for the schema: {
"type": "object",
"properties": {
"UserId" : {
"type": "string"
},
"NormalizedUserName" : {
"type": "string"
},
"NormalizedEmail" : {
"type": "string"
}
}
} With the SQL: SELECT UserId, NormalizedUserName, NormalizedEmail FROM UserIndex And then you can test it in the GraphiQL browser. See it in action: |
Beta Was this translation helpful? Give feedback.
-
@MarGraz, as a workaround you can use JSON_QUERY, and query Document directly:
Please note, RoleNames it is a stringified array. So, you need to parse it again in your workflow by using |
Beta Was this translation helpful? Give feedback.
-
I've just checked again, because I remember that STRING_AGG function should work. |
Beta Was this translation helpful? Give feedback.
-
You guys should simply create a custom GraphQL query by using already usefull user services. Just saying... that would save you time and you will learn how to do it by code. |
Beta Was this translation helpful? Give feedback.
You can use this for the schema:
With the SQL:
And then you can test it in the GraphiQL browser. See it in action: