35. Mutation: Add "Comment" to the selected "Note"

This mutation allows you to add a Comment to the selected Note.

  • A Comment can be linked to the Field via its unique identifier fieldUuid and to the Note via noteUuid.

  • The content of the Comment can be provided using the text attribute. If the content needs to be multiline, the text attribute should contain a string with newline characters \\n to separate lines. For example: "First line. is here\\nSecond line is here.\\nThird line is here.".

  • It is possible to set a defined datetime associated with the comment using the createdDate attribute in the ISO8601 format.

The sample requests can be found below:

mutation AddNoteComment {
  addNoteComment(input:{
    noteUuid: "53547188-f37c-4d65-9733-f7de4be28e5b",
    fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
    text: "The 1st comment from multiple.",
    createdDate: "2020-08-25T06:06:06.000Z"
  } ) {
    uuid
    fieldUuid
    noteUuid
    createdDate
    updatedDate
    text
  }
}
mutation AddNoteComment {
  addNoteComment(input:{
    noteUuid: "53547188-f37c-4d65-9733-f7de4be28e5b",
    fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
    text: "First line. is here\\nSecond line is here.\\nThird line is here.",
    createdDate: "2020-08-25T07:07:07.000Z"
  } ) {
    uuid
    fieldUuid
    noteUuid
    createdDate
    updatedDate
    text
  }
}

Last updated

Powered by GeoPard Agriculture - Automated precisionAg platform