Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 442 Bytes

agent_by_id.md

File metadata and controls

30 lines (25 loc) · 442 Bytes

agentById

Examples

An agent could be defined like so:

mutation {
  defineContractorAgent(
      externalId: "externalId",
      attributes: { locationAttribute: "location" }
  ) {
      context
  }
}

A user could query that agent in the following way:

query {
    agentById(id: {externalId: "externalid" }) {
    ... on ContractorAgent {
      id
      externalId
      locationAttribute
    }
  }
}