mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 02:37:05 +00:00 
			
		
		
		
	
		
			
	
	
		
			35 lines
		
	
	
		
			522 B
		
	
	
	
		
			GraphQL
		
	
	
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			522 B
		
	
	
	
		
			GraphQL
		
	
	
	
	
	
|   | fragment testFields on Test {
 | ||
|  |     urn
 | ||
|  |     name
 | ||
|  |     category
 | ||
|  |     description
 | ||
|  |     definition {
 | ||
|  |         json
 | ||
|  |     }
 | ||
|  | }
 | ||
|  | 
 | ||
|  | query getTest($urn: String!) {
 | ||
|  |     test(urn: $urn) {
 | ||
|  |         ...testFields
 | ||
|  |     }
 | ||
|  | }
 | ||
|  | 
 | ||
|  | query listTests($input: ListTestsInput!) {
 | ||
|  |     listTests(input: $input) {
 | ||
|  |         start
 | ||
|  |         count
 | ||
|  |         total
 | ||
|  |         tests {
 | ||
|  |             ...testFields
 | ||
|  |         }
 | ||
|  |     }
 | ||
|  | }
 | ||
|  | 
 | ||
|  | mutation createTest($input: CreateTestInput!) {
 | ||
|  |     createTest(input: $input)
 | ||
|  | }
 | ||
|  | 
 | ||
|  | mutation deleteTest($urn: String!) {
 | ||
|  |     deleteTest(urn: $urn)
 | ||
|  | }
 |