AgriWebb API
GraphQL/Objects

Session

A session delimits a set of records recorded under the same event. This can be a physical on farm event such as bringing animals into the yards and recording weights, treatments etc in a live session in AgriWebb or it can be a data event such as importing a set of data into AgriWebb via the importer.

type Session {
  id: ID!
  name: String
  type: SessionType
  state: SessionState
  records(
    filter: RecordFilter
    limit: Int
    skip: Int
    _capabilities: [String]
  ): [Record]
  animalIds: [ID]!
  farmId: ID!
}

Fields

Session.id ● ID!
non-null
scalar

Session identifier

Session.name ● String
scalar

Session name

Session.type ● SessionType
enum

Session type

Session.state ● SessionState
enum

Session state

Session.records ● [Record]
list
interface

Records done during the session

Session.records.filter ● RecordFilter
input
Session.records.limit ● Int
scalar
Session.records.skip ● Int
scalar
Session.records._capabilities ● [String]
list
scalar

Query capabilities

Session.animalIds ● [ID]!
non-null
scalar

Animal identifiers processed during the session

Session.farmId ● ID!
non-null
scalar

Returned By

sessions

query

On this page

FieldsSession.id ● ID!
non-null
scalar
Session.name ● String
scalar
Session.type ● SessionType
enum
Session.state ● SessionState
enum
Session.records ● [Record]
list
interface
Session.records.filter ● RecordFilter
input
Session.records.limit ● Int
scalar
Session.records.skip ● Int
scalar
Session.records._capabilities ● [String]
list
scalar
Session.animalIds ● [ID]!
non-null
scalar
Session.farmId ● ID!
non-null
scalar
Returned By