GraphQL Reference

Schema Types

Table of Contents

Query (MainQuery)

FieldArgumentTypeDescription
saleitemSaleItemNode

The ID of the object

idID!
saleitemCategorySaleItemCategoryNode

The ID of the object

idID!
cashierCashierNode

The ID of the object

idID!
cashiersCashierNodeConnection
offsetInt
beforeString
afterString
firstInt
lastInt
shopShopNode

The ID of the object

idID!
shopsShopNodeConnection
offsetInt
beforeString
afterString
firstInt
lastInt
dateDate
statusString
billByIdBillObjectType
idInt!
billBillNode

The ID of the object

idID!
billsBillNodeConnection
offsetInt
beforeString
afterString
firstInt
lastInt
billIdFloat
statusString
dateDate
startDateDate
endDateDate
cashierFloat
billTypeBillTypeNode

The ID of the object

idID!
receiptReceiptNode

The ID of the object

idID!
receiptsReceiptNodeConnection
offsetInt
beforeString
afterString
firstInt
lastInt
receiptIdInt
statusString
dateDate
startDateDate
endDateDate
cashierFloat
productSalesProductSalesNodeConnection
offsetInt
beforeString
afterString
firstInt
lastInt
shopID
saleitemID
dateDate
startDateDate
endDateDate
cashierFloat

Objects

BillNode

FieldArgumentTypeDescription
createdDateTime!
lastUpdatedDateTime!
idID!

The ID of the object.

shopShopNode!
cashierCashierNode
customerCountInt!
vatModeInt!
vatRateInt!
svcModeInt!
svcRateInt!
subTotalFloat!
vatPriceFloat!
svcPriceFloat!
totalDiscountFloat!
totalAmountFloat!
totalPaymentFloat
roundingFloat!
changeFloat
typeBillTypeNode!
labelString!
statusBillStatusEnum
showInTableListBoolean!
receiptsReceiptNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
receiptIdInt
statusString
billIdID
shopID
billIdInt

BillNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[BillNodeEdge]!

Contains the nodes in this connection.

totalCountInt

The total count of objects in this query.

BillNodeEdge

A Relay edge containing a BillNode and its cursor.

FieldArgumentTypeDescription
nodeBillNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

BillObjectType

FieldArgumentTypeDescription
createdDateTime!
lastUpdatedDateTime!
idID!
shopShopNode!
cashierCashierNode
customerCountInt!
vatModeInt!
vatRateInt!
svcModeInt!
svcRateInt!
subTotalFloat!
vatPriceFloat!
svcPriceFloat!
totalDiscountFloat!
totalAmountFloat!
totalPaymentFloat
roundingFloat!
changeFloat
typeBillTypeNode!
labelString!
statusInt!
showInTableListBoolean!
receiptsReceiptNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
receiptIdInt
statusString
billIdID
shopID

BillTypeNode

FieldArgumentTypeDescription
deletedDateTime
createdDateTime!
lastUpdatedDateTime!
idID!

The ID of the object.

defaultBoolean!
nameString!
editableBoolean!
showBoolean!
positionInt!
bills[BillObjectType!]!

CashierNode

FieldArgumentTypeDescription
deletedDateTime
idID!

The ID of the object.

nameString!
bills[BillObjectType!]!
receiptsReceiptNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
receiptIdInt
statusString
billIdID
shopID

CashierNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[CashierNodeEdge]!

Contains the nodes in this connection.

CashierNodeEdge

A Relay edge containing a CashierNode and its cursor.

FieldArgumentTypeDescription
nodeCashierNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

PageInfo

The Relay compliant PageInfo type, containing data necessary to paginate this connection.

FieldArgumentTypeDescription
hasNextPageBoolean!

When paginating forwards, are there more items?

hasPreviousPageBoolean!

When paginating backwards, are there more items?

startCursorString

When paginating backwards, the cursor to continue.

endCursorString

When paginating forwards, the cursor to continue.

ProductSalesNode

FieldArgumentTypeDescription
unitPriceFloat
quantityFloat
totalAmountFloat
idID!

The ID of the object.

saleitemIdInt
nameString
codeString

ProductSalesNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[ProductSalesNodeEdge]!

Contains the nodes in this connection.

totalCountInt

The total count of objects in this query.

ProductSalesNodeEdge

A Relay edge containing a ProductSalesNode and its cursor.

FieldArgumentTypeDescription
nodeProductSalesNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

ReceiptNode

FieldArgumentTypeDescription
createdDateTime!
lastUpdatedDateTime!
idID!

The ID of the object.

receiptIdInt
shopShopNode!
cashierCashierNode!
billBillObjectType!
customerCountInt!
vatModeInt!
vatRateInt!
svcModeInt!
svcRateInt!
subTotalFloat!
totalDiscountFloat!
vatPriceFloat!
svcPriceFloat!
totalAmountFloat!
roundingFloat!
totalPaymentFloat
changeFloat
labelString!
statusReceiptStatusEnum
items[ReceiptOrderItemType]

ReceiptNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[ReceiptNodeEdge]!

Contains the nodes in this connection.

totalCountInt

The total count of objects in this query.

ReceiptNodeEdge

A Relay edge containing a ReceiptNode and its cursor.

FieldArgumentTypeDescription
nodeReceiptNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

ReceiptOrderItemType

FieldArgumentTypeDescription
idID!
receiptReceiptNode!
saleitemSaleItemNode!
unitPriceFloat

ราคาต่อหน่วย

quantityFloat

จำนวน

totalAmountFloat

ราคารวม

noteString!

SaleItemCategoryNode

FieldArgumentTypeDescription
deletedDateTime
createdDateTime!
lastUpdatedDateTime!
idID!

The ID of the object.

nameString!
saleitemSetSaleItemNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt

SaleItemCategoryNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[SaleItemCategoryNodeEdge]!

Contains the nodes in this connection.

SaleItemCategoryNodeEdge

A Relay edge containing a SaleItemCategoryNode and its cursor.

FieldArgumentTypeDescription
nodeSaleItemCategoryNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

SaleItemNode

FieldArgumentTypeDescription
idID!

The ID of the object.

deletedDateTime
createdDateTime!
lastUpdatedDateTime!
nameString!
imageString

ขนาดที่เหมาะสมคือ 512px x 512px

ppoiString!
priceFloat!

ราคาสินค้าต่อ 1 หน่วย

codeString!
quantityUnitFloat!

หน่วยปริมาณสินค้า

categoriesSaleItemCategoryNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
statusSaleItemStatus!
receiptOrderitemsProductSalesNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
shopID
saleitemID

SaleItemNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[SaleItemNodeEdge]!

Contains the nodes in this connection.

SaleItemNodeEdge

A Relay edge containing a SaleItemNode and its cursor.

FieldArgumentTypeDescription
nodeSaleItemNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

ShopNode

FieldArgumentTypeDescription
createdDateTime!
lastUpdatedDateTime!
idID!

The ID of the object.

dateDate!
roundPerDateInt!
vatModeInt!
vatRateInt!
svcModeInt!
svcRateInt!
openedAtDateTime
closedAtDateTime
initialCashFloat!
submitCashFloat
subTotalFloat
totalAmountFloat
totalDiscountFloat
totalPaymentFloat
totalChangeFloat
totalExpenseFloat
overOrShortFloat
statusShopStatusEnum
bills[BillObjectType!]!
receiptsReceiptNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
receiptIdInt
statusString
billIdID
shopID
receiptOrderitemsProductSalesNodeConnection!
offsetInt
beforeString
afterString
firstInt
lastInt
shopID
saleitemID

ShopNodeConnection

FieldArgumentTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edges[ShopNodeEdge]!

Contains the nodes in this connection.

totalCountInt

The total count of objects in this query.

ShopNodeEdge

A Relay edge containing a ShopNode and its cursor.

FieldArgumentTypeDescription
nodeShopNode

The item at the end of the edge

cursorString!

A cursor for use in pagination

Enums

BillStatusEnum

ValueDescription
OPENED
FROZEN
IN_PAYMENT
CLOSED
CANCELED
MERGED

ReceiptStatusEnum

ValueDescription
COMPLETED
VOIDED

SaleItemStatus

An enumeration.

ValueDescription
A_1

พร้อมใช้งาน

_1

ระงับการขาย

_2

ยกเลิกชั่วคราว

ShopStatusEnum

ValueDescription
OPENED
CLOSED

Scalars

Boolean

The Boolean scalar type represents true or false.

Date

The Date scalar type represents a Date value as specified by iso8601.

DateTime

The DateTime scalar type represents a DateTime value as specified by iso8601.

Float

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31 - 1) and 2^31 - 1 since represented in JSON as double-precision floating point numbers specifiedby IEEE 754.

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Interfaces

Node

An object with an ID

FieldArgumentTypeDescription
idID!

The ID of the object.

Last updated on