Getting Variables from graphql
See original GitHub issueSirs I have tried searching in the forum for my kinda error. Sorry if this is a repeat.
I’m using 7.0.0.SR1 Runtime Bundle. With latest activiti/activiti-cloud-notifications-graphql:7.1.58.
Here is my query:
query {
ProcessInstances(where: {
OR: {
status: { IN: RUNNING }
}
}) {
select {
id
status
variables{
name
value
}
}
}
}
I managed to get:
{
"data": {
"ProcessInstances": {
"select": [
{
"id": "750f8cf1-61e1-11e9-84b3-0242ac130002",
"status": "RUNNING",
"variables": []
},
{
"id": "818996f2-6342-11e9-89c8-0242ac13001e",
"status": "RUNNING",
"variables": []
},
{
"id": "8b2c0563-6342-11e9-89c8-0242ac13001e",
"status": "RUNNING",
"variables": []
}
]
}
}
}
How can I get the variables values and names from graphql? Using the JPA query service REST API, I managed to get all of them. But I have to iterate per process instance id in order to get all the variables.
Regards
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Queries and Mutations - GraphQL
Instead, GraphQL has a first-class way to factor dynamic values out of the query, and pass them as a separate dictionary. These values...
Read more >GraphQL Variables - Dgraph
Variables simplify GraphQL queries and mutations by letting you pass data separately. A GraphQL request can be split into two sections: one for...
Read more >GraphQL variables in simple terms - LogRocket Blog
In GraphQL, you can use variables to reuse the same query/mutations written by the client, with different arguments. To get started, let's look ......
Read more >GraphQL query best practices
Use GraphQL variables to provide arguments ... The first query uses a variable ( $dogId ) for the value of the dog field's...
Read more >GraphQL Variables - A Practical Guide to ... - Educative.io
Essentially, variables can be used to create dynamic queries. Following the best practices in GraphQL, we don't need manual string interpolation to structure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@igdianov Thanks you very much! It works now! Thank you for your patience!
@alaksmana Ok, I have looked at your Docker Compose and spotted a few things that need correction:
Make sure that you use 7.0.0.SR1 tag for Query, Audit and Notifications Graphq Docker images. The tags should be consistent with activiti-cloud-dependencies version 7.0.0.SR1 used in Rb.
In
activiti-cloud-notifications-graphql
use the following configuration:After making changes, clean you stack
docker-compose down
, remove all containers and prune all data volumes withdocker volume prune
anddocker system prune
.Start everything with
docker-compose up
and test again.