Graphql
Graphql Auction
Query
list auction by Id
{
lofAuctionById(
auction_id : string!
){
entity_id
product_id
customer_id
min_amount
starting_price
reserve_price
auction_status
days
min_qty
max_qty
start_auction_time
stop_auction_time
increment_opt
increment_price
auto_auction_opt
status
featured_auction
buy_it_now
created_at
max_amount
}
}
2. List Auction
{
lofAuctionList(
search: String
filter: AuctionFilterInput
pageSize: Int = 20
currentPage: Int = 1
){
items {
entity_id
product_id
customer_id
min_amount
starting_price
reserve_price
auction_status
days
min_qty
max_qty
start_auction_time
stop_auction_time
increment_opt
increment_price
auto_auction_opt
status
featured_auction
buy_it_now
created_at
max_amount
}
total_count: Int
}
}
input AuctionFilterInput {
auction_id: FilterTypeInput @doc(description: "Auction ID")
product_id: FilterTypeInput @doc(description: "product_id")
customer_id: FilterTypeInput @doc(description: "customer_id")
featured_auction: FilterTypeInput @doc(description: "featured_auction")
start_auction_time: FilterTypeInput @doc(description: "start_auction_time")
stop_auction_time: FilterTypeInput @doc(description: "stop_auction_time")
or: AuctionFilterInput @doc(description: "The keyword required to perform a logical OR comparison")
}
3. list my Subscribed auction
{
lofMySubscribedAuctionList(
search: String
filter: SubscribedAuctionFilterInput
pageSize: Int = 20
currentPage: Int = 1
){
items{
entity_id
auction_id
product_id
customer_id
max_absentee_amount
status
created_at
updated_at
}
total_count: Int
}
}
input SubscribedAuctionFilterInput {
auction_id: FilterTypeInput @doc(description: "Auction ID")
product_id: FilterTypeInput @doc(description: "product_id")
start_auction_time: FilterTypeInput @doc(description: "start_auction_time")
stop_auction_time: FilterTypeInput @doc(description: "stop_auction_time")
or: SubscribedAuctionFilterInput @doc(description: "The keyword required to perform a logical OR comparison")
}
Mutation
save auction
{
lofAuctionBid (
product_id: String!
amount: Float
is_auto: Boolean!
){
code: Int
message: String
}
}
2. save absentee by id
{
lofMaxAbsenteeBid (
product_id: String!
amount: Float!
){
code: Int
message: String
}
}
3. Delete absentee by id
{
lofDeleteMaxAbsenteeBid(
auction_id: Int!
){
code: Int
message: String
}
}
Last updated