Skip to content

Commit

Permalink
KOGITO-9721 - Use JSON scalar for process instance variables in Data …
Browse files Browse the repository at this point in the history
…Index GraphQL schema
  • Loading branch information
cristianonicolai committed Aug 16, 2023
1 parent 9fcb801 commit eb5a058
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
scalar DateTime
scalar BigDecimal
scalar Long
scalar JSON

schema {
query: Query
Expand All @@ -25,7 +26,7 @@ type ProcessInstance {
serviceUrl: String
nodes: [NodeInstance!]!
milestones: [Milestone!]
variables: String
variables: JSON
start: DateTime!
end: DateTime
parentProcessInstance: ProcessInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public GraphQLSchema createSchema() {
.scalar(getDateTimeScalarType())
.scalar(ExtendedScalars.GraphQLBigDecimal)
.scalar(ExtendedScalars.GraphQLLong)
.scalar(ExtendedScalars.Json)
.build();

SchemaGenerator schemaGenerator = new SchemaGenerator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public GraphQLSchema createSchema() {
.scalar(getDateTimeScalarType())
.scalar(ExtendedScalars.GraphQLBigDecimal)
.scalar(ExtendedScalars.GraphQLLong)
.scalar(ExtendedScalars.Json)
.build();

SchemaGenerator schemaGenerator = new SchemaGenerator();
Expand Down

0 comments on commit eb5a058

Please sign in to comment.