This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Copyright 2020 Perforce Software | |
]]-- | |
local ExtUtils = {} | |
local cjson = require "cjson" | |
function getManifest() | |
local fn = Helix.Core.Server.GetArchDirFileName( "manifest.json" ) | |
local fh = assert( io.open( fn, "r" ) ) | |
local m = cjson.decode( fh:read( "*all" ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UploadAsset = [%graphql | |
{| | |
mutation Upload($file: Upload!) { | |
upload(file: $file) | |
} | |
|} | |
]; | |
module UploadAssetMutation = ReasonApollo.CreateMutation(UploadAsset); |