Loading...
Loading...
Compare original and translation side by side
POST /graphqlAuthorization: Bearer {token}application/json/graphqlSTEEDOS_GRAPHQL_ENABLE_CONSOLEPOST /graphqlAuthorization: Bearer {token}application/json/graphqlSTEEDOS_GRAPHQL_ENABLE_CONSOLEordersorders{objectName}{objectName}{
orders(
filters: [["status", "=", "approved"]]
fields: ["_id", "name", "amount"]
top: 20
skip: 0
sort: "created desc"
) {
_id
name
amount
status
}
}{
orders(
filters: [["status", "=", "approved"]]
fields: ["_id", "name", "amount"]
top: 20
skip: 0
sort: "created desc"
) {
_id
name
amount
status
}
}{objectName}__findOne{objectName}__findOne{
orders__findOne(id: "67abc123def456") {
_id
name
amount
customer
}
}{
orders__findOne(id: "67abc123def456") {
_id
name
amount
customer
}
}{objectName}__count{objectName}__count{
orders__count(filters: [["status", "=", "draft"]])
}{
orders__count(filters: [["status", "=", "draft"]])
}| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| JSON | No | none | OData-style filter array, e.g. |
| JSON | No | all | Array of field names to return |
| Int | Yes | 10000 | Max records to return (max 10,000) |
| Int | Yes | 0 | Pagination offset |
| String | No | none | Sort expression, e.g. |
| 参数 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| JSON | 否 | 无 | OData风格的筛选数组,例如 |
| JSON | 否 | 所有字段 | 需要返回的字段名称数组 |
| Int | 是 | 10000 | 返回的最大记录数(上限为10,000) |
| Int | 是 | 0 | 分页偏移量 |
| String | 否 | 无 | 排序表达式,例如 |
=, !=, >, >=, <, <=
contains, notcontains, startswith
in, notin
between[["status", "=", "active"]]
[["amount", ">", 1000], ["status", "in", ["draft", "submitted"]]]
[["name", "contains", "test"]]=, !=, >, >=, <, <=
contains, notcontains, startswith
in, notin
between[["status", "=", "active"]]
[["amount", ">", 1000], ["status", "in", ["draft", "submitted"]]]
[["name", "contains", "test"]]{objectName}__insert{objectName}__insertmutation {
orders__insert(doc: {
name: "ORD-2026-001",
customer: "cust_abc123",
amount: 5000,
status: "draft"
}) {
_id
name
amount
}
}spacemutation {
orders__insert(doc: {
name: "ORD-2026-001",
customer: "cust_abc123",
amount: 5000,
status: "draft"
}) {
_id
name
amount
}
}space{objectName}__update{objectName}__updatemutation {
orders__update(
id: "67abc123def456",
doc: { status: "approved", approved_at: "2026-04-23T10:00:00Z" }
) {
_id
name
status
}
}mutation {
orders__update(
id: "67abc123def456",
doc: { status: "approved", approved_at: "2026-04-23T10:00:00Z" }
) {
_id
name
status
}
}{objectName}__delete{objectName}__deletemutation {
orders__delete(id: "67abc123def456")
}enable_trashmutation {
orders__delete(id: "67abc123def456")
}enable_trash__expand__expand{
orders__findOne(id: "67abc123def456") {
_id
name
customer # Returns raw ID: "cust_abc123"
customer__expand { # Returns expanded object
_id
name
email
phone
}
}
}{
orders__findOne(id: "67abc123def456") {
_id
name
customer # 返回原始ID: "cust_abc123"
customer__expand { # 返回扩展后的对象
_id
name
email
phone
}
}
}_display_display{
orders__findOne(id: "67abc123def456") {
_id
amount # Raw value: 5000
status # Raw value: "approved"
_display {
amount # Formatted: "¥5,000.00"
status # Localized label: "已批准"
created # Formatted date: "2026-04-23 10:00"
}
}
}{
orders__findOne(id: "67abc123def456") {
_id
amount # 原始值: 5000
status # 原始值: "approved"
_display {
amount # 格式化后: "¥5,000.00"
status # 本地化标签: "已批准"
created # 格式化日期: "2026-04-23 10:00"
}
}
}_permissions_permissions{
orders__findOne(id: "67abc123def456") {
_id
name
_permissions {
allowCreate
allowEdit
allowDelete
field_permissions
}
}
}{
orders__findOne(id: "67abc123def456") {
_id
name
_permissions {
allowCreate
allowEdit
allowDelete
field_permissions
}
}
}_related_*_related_*{
orders__findOne(id: "67abc123def456") {
_id
name
_related_order_items_order { # Detail records via lookup field "order"
_id
product
quantity
price
}
_related_files {
_id
name
}
_related_tasks {
_id
name
status
}
_related_notes {
_id
body
}
}
}_related_{childObjectName}_{lookupFieldName}{
orders__findOne(id: "67abc123def456") {
_id
name
_related_order_items_order { # 通过关联字段"order"获取明细记录
_id
product
quantity
price
}
_related_files {
_id
name
}
_related_tasks {
_id
name
status
}
_related_notes {
_id
body
}
}
}_related_{childObjectName}_{lookupFieldName}| Steedos Field Type | GraphQL Type |
|---|---|
| text, textarea, html, url, email | |
| number, currency, percent | |
| boolean | |
| date, datetime, time | |
| select (single) | |
| select (multiple) | |
| lookup, master_detail | |
| image, file | |
| formula, summary | Depends on return type |
| Other | |
| Steedos字段类型 | GraphQL类型 |
|---|---|
| text, textarea, html, url, email | |
| number, currency, percent | |
| boolean | |
| date, datetime, time | |
| select(单选) | |
| select(多选) | |
| lookup, master_detail | |
| image, file | |
| formula, summary | 取决于返回类型 |
| 其他 | |
undefinedundefined
Unauthenticated requests return `UnAuthorizedError`.
未认证的请求会返回`UnAuthorizedError`。STEEDOS_GRAPHQL_ENABLE_DATALOADER=true # defaultSTEEDOS_GRAPHQL_ENABLE_DATALOADER=true # 默认值undefinedundefined
```graphql
```graphqlundefinedundefined| Variable | Default | Description |
|---|---|---|
| | Enable Apollo Playground at /graphql |
| | Enable DataLoader batching |
| 变量 | 默认值 | 描述 |
|---|---|---|
| | 启用/graphql路径下的Apollo Playground |
| | 启用DataLoader批量处理 |
topis_deleted: truetopis_deleted: true