core.document.lua

-- Require the class.
local document = require "luchia.core.document"
-- Build a new document object.
local doc = document:new({
  id = "document-id",
  document = {
    hello = "world",
  },
})
-- Add an attachment.
local response = doc:add_attachment(previously_created_attachment_object)
generated by LDoc 1.4.6 Last updated 2021-02-26 22:36:58