Module User_commands.Insert

module Raw : sig ... end
type t_insert_user_commands_returning = {
hash : Serializing.Transaction_hash.t;
first_seen : Base_types.Optional_block_time.t option;
}
type t_insert_user_commands = {
returning : t_insert_user_commands_returning array;
}
type t = {
insert_user_commands : t_insert_user_commands option;
}
type t_variables = {
user_commands : t_variables_user_commands_insert_input array;
}
and t_variables_user_commands_insert_input = {
amount : Graphql_ppx_runtime.Json.t option;
blocks : t_variables_blocks_user_commands_arr_rel_insert_input option;
fee : Graphql_ppx_runtime.Json.t option;
first_seen : Graphql_ppx_runtime.Json.t option;
hash : string option;
memo : string option;
nonce : Graphql_ppx_runtime.Json.t option;
receiver : t_variables_public_keys_obj_rel_insert_input option;
sender : t_variables_public_keys_obj_rel_insert_input option;
typ : Graphql_ppx_runtime.Json.t option;
}
and t_variables_blocks_user_commands_arr_rel_insert_input = {
data : t_variables_blocks_user_commands_insert_input array;
on_conflict : t_variables_blocks_user_commands_on_conflict option;
}
and t_variables_blocks_user_commands_insert_input = {
block : t_variables_blocks_obj_rel_insert_input option;
receipt_chain_hash : t_variables_receipt_chain_hashes_obj_rel_insert_input option;
user_command : t_variables_user_commands_obj_rel_insert_input option;
}
and t_variables_blocks_obj_rel_insert_input = {
data : t_variables_blocks_insert_input;
on_conflict : t_variables_blocks_on_conflict option;
}
and t_variables_blocks_insert_input = {
block_length : Graphql_ppx_runtime.Json.t option;
block_time : Graphql_ppx_runtime.Json.t option;
creator : t_variables_public_keys_obj_rel_insert_input option;
fee_transfers : t_variables_blocks_fee_transfers_arr_rel_insert_input option;
global_slot : int option;
ledger_hash : string option;
ledger_proof_nonce : int option;
parent_hash : t_variables_state_hashes_obj_rel_insert_input option;
snark_jobs : t_variables_blocks_snark_jobs_arr_rel_insert_input option;
snarked_ledger_hash : string option;
state_hash : t_variables_state_hashes_obj_rel_insert_input option;
status : int option;
user_commands : t_variables_blocks_user_commands_arr_rel_insert_input option;
}
and t_variables_public_keys_obj_rel_insert_input = {
data : t_variables_public_keys_insert_input;
on_conflict : t_variables_public_keys_on_conflict option;
}
and t_variables_public_keys_insert_input = {
blocks : t_variables_blocks_arr_rel_insert_input option;
receiver_for_fee_transfers : t_variables_fee_transfers_arr_rel_insert_input option;
receiver_for_user_commands : t_variables_user_commands_arr_rel_insert_input option;
sender_for_user_commands : t_variables_user_commands_arr_rel_insert_input option;
snark_jobs : t_variables_snark_jobs_arr_rel_insert_input option;
value : string option;
}
and t_variables_blocks_arr_rel_insert_input = {
data : t_variables_blocks_insert_input array;
on_conflict : t_variables_blocks_on_conflict option;
}
and t_variables_blocks_on_conflict = {
constraint_ : [ `blocks_state_hash_key ];
update_columns : [ `block_length | `block_time | `global_slot | `ledger_hash | `ledger_proof_nonce | `snarked_ledger_hash | `status ] array;
}
and t_variables_fee_transfers_arr_rel_insert_input = {
data : t_variables_fee_transfers_insert_input array;
on_conflict : t_variables_fee_transfers_on_conflict option;
}
and t_variables_fee_transfers_insert_input = {
blocks : t_variables_blocks_fee_transfers_arr_rel_insert_input option;
fee : Graphql_ppx_runtime.Json.t option;
first_seen : Graphql_ppx_runtime.Json.t option;
hash : string option;
receiver : t_variables_public_keys_obj_rel_insert_input option;
}
and t_variables_blocks_fee_transfers_arr_rel_insert_input = {
data : t_variables_blocks_fee_transfers_insert_input array;
on_conflict : t_variables_blocks_fee_transfers_on_conflict option;
}
and t_variables_blocks_fee_transfers_insert_input = {
block : t_variables_blocks_obj_rel_insert_input option;
fee_transfer : t_variables_fee_transfers_obj_rel_insert_input option;
}
and t_variables_fee_transfers_obj_rel_insert_input = {
data : t_variables_fee_transfers_insert_input;
on_conflict : t_variables_fee_transfers_on_conflict option;
}
and t_variables_fee_transfers_on_conflict = {
constraint_ : [ `fee_transfers_hash_key | `fee_transfers_pkey ];
update_columns : [ `fee | `first_seen | `hash ] array;
}
and t_variables_blocks_fee_transfers_on_conflict = {
constraint_ : [ `blocks_fee_transfers_block_id_fee_transfer_id_key ];
update_columns : [ ] array;
}
and t_variables_user_commands_arr_rel_insert_input = {
data : t_variables_user_commands_insert_input array;
on_conflict : t_variables_user_commands_on_conflict option;
}
and t_variables_user_commands_on_conflict = {
constraint_ : [ `user_commands_hash_key | `user_commands_pkey ];
update_columns : [ `amount | `fee | `first_seen | `hash | `memo | `nonce | `typ ] array;
}
and t_variables_snark_jobs_arr_rel_insert_input = {
data : t_variables_snark_jobs_insert_input array;
on_conflict : t_variables_snark_jobs_on_conflict option;
}
and t_variables_snark_jobs_insert_input = {
blocks : t_variables_blocks_snark_jobs_arr_rel_insert_input option;
fee : Graphql_ppx_runtime.Json.t option;
job1 : int option;
job2 : int option;
prover : t_variables_public_keys_obj_rel_insert_input option;
}
and t_variables_blocks_snark_jobs_arr_rel_insert_input = {
data : t_variables_blocks_snark_jobs_insert_input array;
on_conflict : t_variables_blocks_snark_jobs_on_conflict option;
}
and t_variables_blocks_snark_jobs_insert_input = {
block : t_variables_blocks_obj_rel_insert_input option;
snark_job : t_variables_snark_jobs_obj_rel_insert_input option;
}
and t_variables_snark_jobs_obj_rel_insert_input = {
data : t_variables_snark_jobs_insert_input;
on_conflict : t_variables_snark_jobs_on_conflict option;
}
and t_variables_snark_jobs_on_conflict = {
constraint_ : [ `snark_jobs_job1_job2_key | `snark_jobs_pkey ];
update_columns : [ `fee | `job1 | `job2 ] array;
}
and t_variables_blocks_snark_jobs_on_conflict = {
constraint_ : [ `blocks_snark_jobs_block_id_snark_job_id_key ];
update_columns : [ ] array;
}
and t_variables_public_keys_on_conflict = {
constraint_ : [ `public_keys_pkey | `public_keys_value_key ];
update_columns : [ `value ] array;
}
and t_variables_state_hashes_obj_rel_insert_input = {
data : t_variables_state_hashes_insert_input;
on_conflict : t_variables_state_hashes_on_conflict option;
}
and t_variables_state_hashes_insert_input = {
block : t_variables_blocks_obj_rel_insert_input option;
blocks : t_variables_blocks_arr_rel_insert_input option;
value : string option;
}
and t_variables_state_hashes_on_conflict = {
constraint_ : [ `state_hashes_pkey | `state_hashes_value_key ];
update_columns : [ `value ] array;
}
and t_variables_receipt_chain_hashes_obj_rel_insert_input = {
data : t_variables_receipt_chain_hashes_insert_input;
on_conflict : t_variables_receipt_chain_hashes_on_conflict option;
}
and t_variables_receipt_chain_hashes_insert_input = {
block : t_variables_blocks_user_commands_obj_rel_insert_input option;
hash : string option;
parent : t_variables_receipt_chain_hashes_obj_rel_insert_input option;
}
and t_variables_blocks_user_commands_obj_rel_insert_input = {
data : t_variables_blocks_user_commands_insert_input;
on_conflict : t_variables_blocks_user_commands_on_conflict option;
}
and t_variables_blocks_user_commands_on_conflict = {
constraint_ : [ `blocks_user_commands_block_id_user_command_id_receipt_chain_has ];
update_columns : [ ] array;
}
and t_variables_receipt_chain_hashes_on_conflict = {
constraint_ : [ `receipt_chain_hashes_hash_key | `receipt_chain_hashes_pkey ];
update_columns : [ `hash ] array;
}
and t_variables_user_commands_obj_rel_insert_input = {
data : t_variables_user_commands_insert_input;
on_conflict : t_variables_user_commands_on_conflict option;
}
val query : string

The GraphQL query

val parse : Raw.t -> t

Parse the JSON-compatible GraphQL data to ReasonML data types

val serialize : t -> Raw.t

Serialize the ReasonML GraphQL data that was parsed using the parse function back to the original JSON compatible data

val serializeVariables : t_variables -> Raw.t_variables
val serializeInputObjectuser_commands_insert_input : t_variables_user_commands_insert_input -> Raw.t_variables_user_commands_insert_input
val serializeInputObjectblocks_user_commands_insert_input : t_variables_blocks_user_commands_insert_input -> Raw.t_variables_blocks_user_commands_insert_input
val serializeInputObjectblocks_obj_rel_insert_input : t_variables_blocks_obj_rel_insert_input -> Raw.t_variables_blocks_obj_rel_insert_input
val serializeInputObjectblocks_insert_input : t_variables_blocks_insert_input -> Raw.t_variables_blocks_insert_input
val serializeInputObjectpublic_keys_obj_rel_insert_input : t_variables_public_keys_obj_rel_insert_input -> Raw.t_variables_public_keys_obj_rel_insert_input
val serializeInputObjectpublic_keys_insert_input : t_variables_public_keys_insert_input -> Raw.t_variables_public_keys_insert_input
val serializeInputObjectblocks_arr_rel_insert_input : t_variables_blocks_arr_rel_insert_input -> Raw.t_variables_blocks_arr_rel_insert_input
val serializeInputObjectblocks_on_conflict : t_variables_blocks_on_conflict -> Raw.t_variables_blocks_on_conflict
val serializeInputObjectfee_transfers_arr_rel_insert_input : t_variables_fee_transfers_arr_rel_insert_input -> Raw.t_variables_fee_transfers_arr_rel_insert_input
val serializeInputObjectfee_transfers_insert_input : t_variables_fee_transfers_insert_input -> Raw.t_variables_fee_transfers_insert_input
val serializeInputObjectblocks_fee_transfers_insert_input : t_variables_blocks_fee_transfers_insert_input -> Raw.t_variables_blocks_fee_transfers_insert_input
val serializeInputObjectfee_transfers_obj_rel_insert_input : t_variables_fee_transfers_obj_rel_insert_input -> Raw.t_variables_fee_transfers_obj_rel_insert_input
val serializeInputObjectfee_transfers_on_conflict : t_variables_fee_transfers_on_conflict -> Raw.t_variables_fee_transfers_on_conflict
val serializeInputObjectblocks_fee_transfers_on_conflict : t_variables_blocks_fee_transfers_on_conflict -> Raw.t_variables_blocks_fee_transfers_on_conflict
val serializeInputObjectuser_commands_arr_rel_insert_input : t_variables_user_commands_arr_rel_insert_input -> Raw.t_variables_user_commands_arr_rel_insert_input
val serializeInputObjectuser_commands_on_conflict : t_variables_user_commands_on_conflict -> Raw.t_variables_user_commands_on_conflict
val serializeInputObjectsnark_jobs_arr_rel_insert_input : t_variables_snark_jobs_arr_rel_insert_input -> Raw.t_variables_snark_jobs_arr_rel_insert_input
val serializeInputObjectsnark_jobs_insert_input : t_variables_snark_jobs_insert_input -> Raw.t_variables_snark_jobs_insert_input
val serializeInputObjectblocks_snark_jobs_insert_input : t_variables_blocks_snark_jobs_insert_input -> Raw.t_variables_blocks_snark_jobs_insert_input
val serializeInputObjectsnark_jobs_obj_rel_insert_input : t_variables_snark_jobs_obj_rel_insert_input -> Raw.t_variables_snark_jobs_obj_rel_insert_input
val serializeInputObjectsnark_jobs_on_conflict : t_variables_snark_jobs_on_conflict -> Raw.t_variables_snark_jobs_on_conflict
val serializeInputObjectblocks_snark_jobs_on_conflict : t_variables_blocks_snark_jobs_on_conflict -> Raw.t_variables_blocks_snark_jobs_on_conflict
val serializeInputObjectpublic_keys_on_conflict : t_variables_public_keys_on_conflict -> Raw.t_variables_public_keys_on_conflict
val serializeInputObjectstate_hashes_obj_rel_insert_input : t_variables_state_hashes_obj_rel_insert_input -> Raw.t_variables_state_hashes_obj_rel_insert_input
val serializeInputObjectstate_hashes_insert_input : t_variables_state_hashes_insert_input -> Raw.t_variables_state_hashes_insert_input
val serializeInputObjectstate_hashes_on_conflict : t_variables_state_hashes_on_conflict -> Raw.t_variables_state_hashes_on_conflict
val serializeInputObjectreceipt_chain_hashes_insert_input : t_variables_receipt_chain_hashes_insert_input -> Raw.t_variables_receipt_chain_hashes_insert_input
val serializeInputObjectblocks_user_commands_on_conflict : t_variables_blocks_user_commands_on_conflict -> Raw.t_variables_blocks_user_commands_on_conflict
val serializeInputObjectreceipt_chain_hashes_on_conflict : t_variables_receipt_chain_hashes_on_conflict -> Raw.t_variables_receipt_chain_hashes_on_conflict
val serializeInputObjectuser_commands_obj_rel_insert_input : t_variables_user_commands_obj_rel_insert_input -> Raw.t_variables_user_commands_obj_rel_insert_input
val makeVariables : user_commands:t_variables_user_commands_insert_input array -> unit -> t_variables
val makeInputObjectuser_commands_insert_input : ?amount:Graphql_ppx_runtime.Json.t -> ?blocks:t_variables_blocks_user_commands_arr_rel_insert_input -> ?fee:Graphql_ppx_runtime.Json.t -> ?first_seen:Graphql_ppx_runtime.Json.t -> ?hash:string -> ?memo:string -> ?nonce:Graphql_ppx_runtime.Json.t -> ?receiver:t_variables_public_keys_obj_rel_insert_input -> ?sender:t_variables_public_keys_obj_rel_insert_input -> ?typ:Graphql_ppx_runtime.Json.t -> unit -> t_variables_user_commands_insert_input
val makeInputObjectblocks_user_commands_arr_rel_insert_input : data:t_variables_blocks_user_commands_insert_input array -> ?on_conflict:t_variables_blocks_user_commands_on_conflict -> unit -> t_variables_blocks_user_commands_arr_rel_insert_input
val makeInputObjectblocks_obj_rel_insert_input : data:t_variables_blocks_insert_input -> ?on_conflict:t_variables_blocks_on_conflict -> unit -> t_variables_blocks_obj_rel_insert_input
val makeInputObjectblocks_insert_input : ?block_length:Graphql_ppx_runtime.Json.t -> ?block_time:Graphql_ppx_runtime.Json.t -> ?creator:t_variables_public_keys_obj_rel_insert_input -> ?fee_transfers:t_variables_blocks_fee_transfers_arr_rel_insert_input -> ?global_slot:int -> ?ledger_hash:string -> ?ledger_proof_nonce:int -> ?parent_hash:t_variables_state_hashes_obj_rel_insert_input -> ?snark_jobs:t_variables_blocks_snark_jobs_arr_rel_insert_input -> ?snarked_ledger_hash:string -> ?state_hash:t_variables_state_hashes_obj_rel_insert_input -> ?status:int -> ?user_commands:t_variables_blocks_user_commands_arr_rel_insert_input -> unit -> t_variables_blocks_insert_input
val makeInputObjectpublic_keys_obj_rel_insert_input : data:t_variables_public_keys_insert_input -> ?on_conflict:t_variables_public_keys_on_conflict -> unit -> t_variables_public_keys_obj_rel_insert_input
val makeInputObjectpublic_keys_insert_input : ?blocks:t_variables_blocks_arr_rel_insert_input -> ?receiver_for_fee_transfers:t_variables_fee_transfers_arr_rel_insert_input -> ?receiver_for_user_commands:t_variables_user_commands_arr_rel_insert_input -> ?sender_for_user_commands:t_variables_user_commands_arr_rel_insert_input -> ?snark_jobs:t_variables_snark_jobs_arr_rel_insert_input -> ?value:string -> unit -> t_variables_public_keys_insert_input
val makeInputObjectblocks_arr_rel_insert_input : data:t_variables_blocks_insert_input array -> ?on_conflict:t_variables_blocks_on_conflict -> unit -> t_variables_blocks_arr_rel_insert_input
val makeInputObjectblocks_on_conflict : constraint_:[ `blocks_state_hash_key ] -> update_columns: [ `block_length | `block_time | `global_slot | `ledger_hash | `ledger_proof_nonce | `snarked_ledger_hash | `status ] array -> unit -> t_variables_blocks_on_conflict
val makeInputObjectfee_transfers_arr_rel_insert_input : data:t_variables_fee_transfers_insert_input array -> ?on_conflict:t_variables_fee_transfers_on_conflict -> unit -> t_variables_fee_transfers_arr_rel_insert_input
val makeInputObjectfee_transfers_insert_input : ?blocks:t_variables_blocks_fee_transfers_arr_rel_insert_input -> ?fee:Graphql_ppx_runtime.Json.t -> ?first_seen:Graphql_ppx_runtime.Json.t -> ?hash:string -> ?receiver:t_variables_public_keys_obj_rel_insert_input -> unit -> t_variables_fee_transfers_insert_input
val makeInputObjectblocks_fee_transfers_arr_rel_insert_input : data:t_variables_blocks_fee_transfers_insert_input array -> ?on_conflict:t_variables_blocks_fee_transfers_on_conflict -> unit -> t_variables_blocks_fee_transfers_arr_rel_insert_input
val makeInputObjectblocks_fee_transfers_insert_input : ?block:t_variables_blocks_obj_rel_insert_input -> ?fee_transfer:t_variables_fee_transfers_obj_rel_insert_input -> unit -> t_variables_blocks_fee_transfers_insert_input
val makeInputObjectfee_transfers_obj_rel_insert_input : data:t_variables_fee_transfers_insert_input -> ?on_conflict:t_variables_fee_transfers_on_conflict -> unit -> t_variables_fee_transfers_obj_rel_insert_input
val makeInputObjectfee_transfers_on_conflict : constraint_:[ `fee_transfers_hash_key | `fee_transfers_pkey ] -> update_columns:[ `fee | `first_seen | `hash ] array -> unit -> t_variables_fee_transfers_on_conflict
val makeInputObjectblocks_fee_transfers_on_conflict : constraint_:[ `blocks_fee_transfers_block_id_fee_transfer_id_key ] -> update_columns:[ ] array -> unit -> t_variables_blocks_fee_transfers_on_conflict
val makeInputObjectuser_commands_arr_rel_insert_input : data:t_variables_user_commands_insert_input array -> ?on_conflict:t_variables_user_commands_on_conflict -> unit -> t_variables_user_commands_arr_rel_insert_input
val makeInputObjectuser_commands_on_conflict : constraint_:[ `user_commands_hash_key | `user_commands_pkey ] -> update_columns: [ `amount | `fee | `first_seen | `hash | `memo | `nonce | `typ ] array -> unit -> t_variables_user_commands_on_conflict
val makeInputObjectsnark_jobs_arr_rel_insert_input : data:t_variables_snark_jobs_insert_input array -> ?on_conflict:t_variables_snark_jobs_on_conflict -> unit -> t_variables_snark_jobs_arr_rel_insert_input
val makeInputObjectsnark_jobs_insert_input : ?blocks:t_variables_blocks_snark_jobs_arr_rel_insert_input -> ?fee:Graphql_ppx_runtime.Json.t -> ?job1:int -> ?job2:int -> ?prover:t_variables_public_keys_obj_rel_insert_input -> unit -> t_variables_snark_jobs_insert_input
val makeInputObjectblocks_snark_jobs_arr_rel_insert_input : data:t_variables_blocks_snark_jobs_insert_input array -> ?on_conflict:t_variables_blocks_snark_jobs_on_conflict -> unit -> t_variables_blocks_snark_jobs_arr_rel_insert_input
val makeInputObjectblocks_snark_jobs_insert_input : ?block:t_variables_blocks_obj_rel_insert_input -> ?snark_job:t_variables_snark_jobs_obj_rel_insert_input -> unit -> t_variables_blocks_snark_jobs_insert_input
val makeInputObjectsnark_jobs_obj_rel_insert_input : data:t_variables_snark_jobs_insert_input -> ?on_conflict:t_variables_snark_jobs_on_conflict -> unit -> t_variables_snark_jobs_obj_rel_insert_input
val makeInputObjectsnark_jobs_on_conflict : constraint_:[ `snark_jobs_job1_job2_key | `snark_jobs_pkey ] -> update_columns:[ `fee | `job1 | `job2 ] array -> unit -> t_variables_snark_jobs_on_conflict
val makeInputObjectblocks_snark_jobs_on_conflict : constraint_:[ `blocks_snark_jobs_block_id_snark_job_id_key ] -> update_columns:[ ] array -> unit -> t_variables_blocks_snark_jobs_on_conflict
val makeInputObjectpublic_keys_on_conflict : constraint_:[ `public_keys_pkey | `public_keys_value_key ] -> update_columns:[ `value ] array -> unit -> t_variables_public_keys_on_conflict
val makeInputObjectstate_hashes_obj_rel_insert_input : data:t_variables_state_hashes_insert_input -> ?on_conflict:t_variables_state_hashes_on_conflict -> unit -> t_variables_state_hashes_obj_rel_insert_input
val makeInputObjectstate_hashes_insert_input : ?block:t_variables_blocks_obj_rel_insert_input -> ?blocks:t_variables_blocks_arr_rel_insert_input -> ?value:string -> unit -> t_variables_state_hashes_insert_input
val makeInputObjectstate_hashes_on_conflict : constraint_:[ `state_hashes_pkey | `state_hashes_value_key ] -> update_columns:[ `value ] array -> unit -> t_variables_state_hashes_on_conflict
val makeInputObjectreceipt_chain_hashes_obj_rel_insert_input : data:t_variables_receipt_chain_hashes_insert_input -> ?on_conflict:t_variables_receipt_chain_hashes_on_conflict -> unit -> t_variables_receipt_chain_hashes_obj_rel_insert_input
val makeInputObjectreceipt_chain_hashes_insert_input : ?block:t_variables_blocks_user_commands_obj_rel_insert_input -> ?hash:string -> ?parent:t_variables_receipt_chain_hashes_obj_rel_insert_input -> unit -> t_variables_receipt_chain_hashes_insert_input
val makeInputObjectblocks_user_commands_obj_rel_insert_input : data:t_variables_blocks_user_commands_insert_input -> ?on_conflict:t_variables_blocks_user_commands_on_conflict -> unit -> t_variables_blocks_user_commands_obj_rel_insert_input
val makeInputObjectblocks_user_commands_on_conflict : constraint_: [ `blocks_user_commands_block_id_user_command_id_receipt_chain_has ] -> update_columns:[ ] array -> unit -> t_variables_blocks_user_commands_on_conflict
val makeInputObjectreceipt_chain_hashes_on_conflict : constraint_:[ `receipt_chain_hashes_hash_key | `receipt_chain_hashes_pkey ] -> update_columns:[ `hash ] array -> unit -> t_variables_receipt_chain_hashes_on_conflict
val makeInputObjectuser_commands_obj_rel_insert_input : data:t_variables_user_commands_insert_input -> ?on_conflict:t_variables_user_commands_on_conflict -> unit -> t_variables_user_commands_obj_rel_insert_input
val unsafe_fromJson : Graphql_ppx_runtime.Json.t -> Raw.t
val toJson : Raw.t -> Graphql_ppx_runtime.Json.t
val variablesToJson : Raw.t_variables -> Graphql_ppx_runtime.Json.t