Advertisement
Guest User

gql

a guest
Oct 16th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 KB | None | 0 0
  1. query getRecipeDefs {
  2. getDataFlowRecipeDefinitions {
  3. name
  4. type
  5. inputs {
  6. ... on SingleDataFlowRecipeIO {
  7. name
  8. }
  9. }
  10. params {
  11. label
  12. name
  13. tooltip
  14. type
  15. dataType
  16. validations {
  17. operation
  18. }
  19. emittedFields {
  20. name
  21. }
  22. fieldParams {
  23. ... on DataFlowRecipeFileFieldParams {
  24. extentions
  25. }
  26. }
  27. }
  28. }
  29. }
  30.  
  31. query getGraphNotebookURL($graphID: ID!) {
  32. getGraphNotebookURL(id: $graphID)
  33. }
  34.  
  35. query getGraph($graphID: ID!) {
  36. getDataFlowGraph(id: $graphID) {
  37. result {
  38. id
  39. recipes {
  40. id
  41. name
  42. inputs {
  43. sourceOutputName
  44. source {
  45. id
  46. }
  47. }
  48. outputs {
  49. id
  50. outputName
  51. # asyncResultSet {
  52. # loadingStatus
  53. # rows {
  54. # data
  55. # }
  56. # }
  57. # asyncResultSchema {
  58. # columns {
  59. # name
  60. # type
  61. # }
  62. # }
  63. # asyncResultStatistics {
  64. # statistics {
  65. # name
  66. # value
  67. # }
  68. # }
  69. # asyncResultHistogram {
  70. # values {
  71. # count
  72. # bin {
  73. # ... on DataFlowHistogramNumericBin {
  74. # start
  75. # end
  76. # }
  77. # ... on DataFlowHistogramCategoricalBin {
  78. # key
  79. # }
  80. # }
  81. # }
  82. # }
  83. }
  84. }
  85. }
  86. }
  87. }
  88.  
  89. query getGraphRecipes($graphID: ID!){
  90. getDataFlowGraph(id: $graphID) {
  91. result {
  92. recipes {
  93. type
  94. id
  95. }
  96. }
  97. }
  98. }
  99.  
  100. mutation createGraph {
  101. createGraph {
  102. result {
  103. id
  104. }
  105. }
  106. }
  107.  
  108. mutation addReadRecipe1($graphID: ID!) {
  109. addRecipe(input: {graphID: $graphID, name: "reader", type: "spark.read_incorta", inputs: [], params: [{key: "readTableName", value: "Demo.SINTS"}]}) {
  110. result {
  111. id
  112. recipes {
  113. inputs {
  114. source {
  115. id
  116. }
  117. sourceOutputName
  118. }
  119. id
  120. type
  121. outputs {
  122. id
  123. }
  124. }
  125. }
  126. }
  127. }
  128.  
  129. mutation addReadRecipe2($graphID: ID!) {
  130. addRecipe(input: {graphID: $graphID, name: "reader2", type: "spark.read_incorta", inputs: [], params: [{key: "readTableName", value: "Demo.MINTS"}]}) {
  131. result {
  132. id
  133. recipes {
  134. inputs {
  135. source {
  136. id
  137. }
  138. sourceOutputName
  139. }
  140. id
  141. type
  142. outputs {
  143. id
  144. }
  145. }
  146. }
  147. }
  148. }
  149.  
  150.  
  151. mutation addJoinRecipe(
  152. $graphID: ID!
  153. $sourceRecipeID1:ID!
  154. $sourceRecipeID2:ID!
  155. ) {
  156. addRecipe(input: {graphID: $graphID, name: "joiner2", type: "spark.join",
  157. inputs: [
  158. {sourceRecipeID:$sourceRecipeID1, sourceOutputName:"0"},
  159. {sourceRecipeID:$sourceRecipeID2, sourceOutputName:"0"}
  160. ],
  161. params: [{key: "expressions", value: "reader.id == reader2.id2"}, {key:"join_type", value:"inner"}]}) {
  162. result {
  163. id
  164. recipes {
  165. inputs {
  166. source {
  167. id
  168. }
  169. sourceOutputName
  170. }
  171. id
  172. type
  173. outputs {
  174. id
  175. }
  176. }
  177. }
  178. }
  179. }
  180.  
  181. mutation addSaveRecipe(
  182. $graphID: ID!
  183. $recipeID:ID!
  184. ) {
  185. addRecipe(input: {graphID: $graphID, name: "saver", type: "spark.save",
  186. inputs: [
  187. {
  188. sourceRecipeID: $recipeID,
  189. sourceOutputName:"0"
  190. }
  191. ],
  192. params: []}) {
  193. result {
  194. id
  195. recipes {
  196. inputs {
  197. source {
  198. id
  199. }
  200. sourceOutputName
  201. }
  202. id
  203. type
  204. outputs {
  205. id
  206. }
  207. }
  208. }
  209. }
  210. }
  211.  
  212. mutation deleteRecipe($recipeID: ID!) {
  213. deleteRecipe(id: $recipeID) {
  214. result {
  215. id
  216. recipes {
  217. type
  218. id
  219. }
  220. }
  221. }
  222. }
  223.  
  224. query getRecipeResult($resultID: ID!) {
  225. getDataFlowRecipeResult(id: $resultID) {
  226. result {
  227. asyncResultSet {
  228. rows {
  229. data
  230. }
  231. }
  232. asyncResultSchema {
  233. columns {
  234. name
  235. type
  236. }
  237. }
  238. asyncResultHistogram {
  239. values {
  240. count
  241. bin {
  242. ... on DataFlowHistogramNumericBin {
  243. start
  244. end
  245. }
  246. ... on DataFlowHistogramCategoricalBin {
  247. key
  248. }
  249. }
  250. }
  251. }
  252. }
  253. }
  254. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement