Add the canonical data product template
Moves the data product template from semprini-blog-dataproducts, as adapted to the semprini-data domain platform, into canonical_data_product/. Its worked example passed 9 of 9 checks on the domain platform on 2026-09-17. Adds agent-canonical-product, the blog's agent-product adapted to generate a product into a domain repository from a declaration in the domain's model repository, and README/CLAUDE.md describing the template catalogue, the product contract with the domain platform, and team ownership. Source-aligned and experience templates are planned. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
commit
62a3714562
30 files changed
+1529
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Example Address: GraphQL surface reflected by pg_graphql from example_address.address.
|
||||
# Documentation only; the live schema is available by introspection at
|
||||
# POST http://localhost:20000/rpc/example_address_graphql (GRAPHQL_PORT of a domain at port base 20000).
|
||||
|
||||
type Address implements Node {
|
||||
nodeId: ID!
|
||||
addressId: UUID!
|
||||
addressType: String # enum:Address Type, enforced by CHECK in the ODS
|
||||
addressLine1: String
|
||||
addressLine2: String
|
||||
suburb: String
|
||||
city: String
|
||||
stateOrRegion: String
|
||||
postcode: String
|
||||
country: String!
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
addressCollection(
|
||||
first: Int, last: Int, before: Cursor, after: Cursor,
|
||||
filter: AddressFilter, orderBy: [AddressOrderBy!]
|
||||
): AddressConnection
|
||||
}
|
||||
|
||||
extend type Mutation {
|
||||
insertIntoAddressCollection(objects: [AddressInsertInput!]!): AddressInsertResponse
|
||||
updateAddressCollection(set: AddressUpdateInput!, filter: AddressFilter, atMost: Int! = 1): AddressUpdateResponse
|
||||
deleteFromAddressCollection(filter: AddressFilter, atMost: Int! = 1): AddressDeleteResponse
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
# Run by `data-domain test` against POST /rpc/example_address_graphql.
|
||||
query ExampleAddressSmoke {
|
||||
addressCollection(first: 5) {
|
||||
edges {
|
||||
node {
|
||||
addressId
|
||||
addressType
|
||||
city
|
||||
country
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user