AgriWebb API
GraphQL/Objects

PurchaseRecord

No description

type PurchaseRecord implements Record {
  recordId: ID!
  recordType: RecordType
  observationDate: Timestamp
  sessionId: ID
  animalId: ID!
  arrivalDate: Timestamp
  previousOwnerId: ID
  previousOwnerName: String
  reference: String
}

Fields

PurchaseRecord.recordId ● ID!
non-null
scalar

PurchaseRecord.recordType ● RecordType
enum

PurchaseRecord.observationDate ● Timestamp
scalar

PurchaseRecord.sessionId ● ID
scalar

PurchaseRecord.animalId ● ID!
non-null
scalar

PurchaseRecord.arrivalDate ● Timestamp
scalar

The date the animals arrived on farm

PurchaseRecord.previousOwnerId ● ID
scalar

ID of the previous owner

PurchaseRecord.previousOwnerName ● String
scalar

Name of the previous owner

PurchaseRecord.reference ● String
scalar

A reference number or identifier for this purchase

Interfaces

Record
interface

Polymorphic parent type of various records regularly recorded against an animal. There is generally a 0-n relationship between these records and the individual, ie: the animal may have multiple records of the same type recorded against it over time

On this page

FieldsPurchaseRecord.recordId ● ID!
non-null
scalar
PurchaseRecord.recordType ● RecordType
enum
PurchaseRecord.observationDate ● Timestamp
scalar
PurchaseRecord.sessionId ● ID
scalar
PurchaseRecord.animalId ● ID!
non-null
scalar
PurchaseRecord.arrivalDate ● Timestamp
scalar
PurchaseRecord.previousOwnerId ● ID
scalar
PurchaseRecord.previousOwnerName ● String
scalar
PurchaseRecord.reference ● String
scalar
InterfacesRecord
interface