The canonical data product for the Digital Core domain, copied unchanged from the blog repository's products/canonical-party (generated by /agent-product from data_model/data_products/canonical.md, 65 of 65 checks on the blog's stack on 2026-09-09). The next commit adapts it to the domain platform. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
115 lines
2.2 KiB
GraphQL
115 lines
2.2 KiB
GraphQL
# Run by `semprini-blog-dataproducts test` against POST /rpc/canonical_party_graphql.
|
|
# It must return a `data` object and no `errors`; it does not need to return rows. The
|
|
# relationship traversals exercise the field names documented in schema.graphql.
|
|
query CanonicalPartySmoke {
|
|
partyCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
partyId
|
|
partyType
|
|
legalName
|
|
partyStatus
|
|
createdAt
|
|
updatedAt
|
|
person { preferredName }
|
|
company { legalStructure }
|
|
}
|
|
}
|
|
}
|
|
addressCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
addressId
|
|
addressType
|
|
city
|
|
country
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
}
|
|
personCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
personId
|
|
preferredName
|
|
createdAt
|
|
updatedAt
|
|
party { legalName }
|
|
}
|
|
}
|
|
}
|
|
companyCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
companyId
|
|
companyRegistrationNumber
|
|
createdAt
|
|
updatedAt
|
|
party { legalName }
|
|
}
|
|
}
|
|
}
|
|
partyRoleCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
partyRoleId
|
|
partyRoleType
|
|
roleStatus
|
|
createdAt
|
|
updatedAt
|
|
party { legalName }
|
|
customer { customerNumber }
|
|
}
|
|
}
|
|
}
|
|
customerCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
customerId
|
|
customerNumber
|
|
createdAt
|
|
updatedAt
|
|
partyRole { roleStatus }
|
|
}
|
|
}
|
|
}
|
|
contactAddressCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
contactAddressId
|
|
addressPurpose
|
|
isPrimary
|
|
createdAt
|
|
updatedAt
|
|
party { legalName }
|
|
address { city }
|
|
}
|
|
}
|
|
}
|
|
partyRoleContactAddressCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
partyRoleContactAddressId
|
|
createdAt
|
|
updatedAt
|
|
partyRole { partyRoleType }
|
|
contactAddress { addressPurpose }
|
|
}
|
|
}
|
|
}
|
|
partyAssociationCollection(first: 5) {
|
|
edges {
|
|
node {
|
|
partyAssociationId
|
|
associationType
|
|
verified
|
|
createdAt
|
|
updatedAt
|
|
sourceParty { legalName }
|
|
targetParty { legalName }
|
|
}
|
|
}
|
|
}
|
|
}
|