Created
December 12, 2025 11:50
-
-
Save daneuchar/e498ffcfe5395a37942e72650434f8d0 to your computer and use it in GitHub Desktop.
gql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mutation CreateDataContract($input: DataContractInput!) { | |
| createDataContract(input: $input) { | |
| id | |
| contractId | |
| version | |
| isLatest | |
| spec { | |
| spec { | |
| version | |
| odcsVersion | |
| } | |
| id | |
| name | |
| status | |
| dataProduct { | |
| id | |
| name | |
| version | |
| domain | |
| businessUnit | |
| description | |
| } | |
| datasets { | |
| id | |
| name | |
| version | |
| classification | |
| outputports { | |
| id | |
| name | |
| version | |
| format | |
| schema | |
| } | |
| } | |
| quality { | |
| dataQuality { | |
| acceptableScore | |
| actualScores | |
| unit | |
| } | |
| dataGovernance { | |
| acceptableScore | |
| actualScores | |
| unit | |
| } | |
| } | |
| serviceLevels { | |
| frequency { | |
| description | |
| interval | |
| } | |
| retention { | |
| description | |
| period | |
| } | |
| } | |
| team { | |
| owner | |
| group { | |
| prod | |
| } | |
| } | |
| support | |
| } | |
| createdOn | |
| } | |
| } | |
| -------------- | |
| { | |
| "input": { | |
| "contractId": "53581432-6c55-4ba2-a65f-72344a91553a", | |
| "spec": { | |
| "spec": { | |
| "version": "v1", | |
| "odcsVersion": "2.0.1" | |
| }, | |
| "id": "53581432-6c55-4ba2-a65f-72344a91553b", | |
| "name": "seller_contract", | |
| "status": "Draft", | |
| "dataProduct": { | |
| "id": "53581432-6c55-4ba2-a65f-72344a91553b", | |
| "name": "seller_quantum", | |
| "version": "1.1.0", | |
| "domain": "seller", | |
| "businessUnit": "WMA", | |
| "description": "Seller payment data" | |
| }, | |
| "datasets": [ | |
| { | |
| "id": "ds-4a7b2c9d-1e5f-4g8h-9i0j-3k2l1m0n9p8q", | |
| "name": "Core_Payments_Dataset", | |
| "version": "2.5.0", | |
| "classification": "Public", | |
| "outputports": [ | |
| { | |
| "id": "op-c1b2a3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6", | |
| "name": "Payments_View_SQL", | |
| "version": "1.0.0", | |
| "format": "CSV", | |
| "schema": "https://schema.example.com/payments" | |
| } | |
| ] | |
| } | |
| ], | |
| "quality": { | |
| "dataQuality": { | |
| "acceptableScore": 100, | |
| "actualScores": 98, | |
| "unit": "%" | |
| }, | |
| "dataGovernance": { | |
| "acceptableScore": 100, | |
| "actualScores": 94, | |
| "unit": "number" | |
| } | |
| }, | |
| "serviceLevels": { | |
| "frequency": { | |
| "description": "Update frequency", | |
| "interval": "Daily at 04:00 AM UTC" | |
| }, | |
| "retention": { | |
| "description": "Data retention", | |
| "period": "7 years" | |
| } | |
| }, | |
| "team": { | |
| "owner": "John Doe", | |
| "email": "john.doe@example.com", | |
| "group": { | |
| "prod": ["MIM_test"] | |
| } | |
| }, | |
| "roles": ["role1", "role2"], | |
| "support": "support@example.com", | |
| "createdOn": "2025-12-12T10:00:00Z", | |
| "updatedOn": "2025-12-12T10:00:00Z" | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment