|
|
|
@ -95,15 +95,20 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### TableNameList |
|
|
|
|
#### Request |
|
|
|
|
|
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
CountryList { |
|
|
|
|
CountryList { |
|
|
|
|
country_id |
|
|
|
|
country |
|
|
|
|
last_update |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -126,14 +131,19 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
"last_update": "1139978640000", |
|
|
|
|
"CityCount": 1 |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### List + where |
|
|
|
|
|
|
|
|
|
##### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryList(where:"(country,like,United%)") { |
|
|
|
@ -145,9 +155,10 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[Usage : comparison operators](#comparison-operators) |
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -174,15 +185,20 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Usage : comparison operators](#comparison-operators) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### List + where + sort |
|
|
|
|
|
|
|
|
|
##### Request |
|
|
|
|
#### List + where + sort |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryList(where:"(country,like,United%)",sort:"-country") { |
|
|
|
@ -194,7 +210,9 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -221,188 +239,21 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Features |
|
|
|
|
* APIs |
|
|
|
|
* Generates GraphQL APIs for **ANY** MySql, Postgres, MSSQL, Sqlite database :fire: |
|
|
|
|
* Serves GraphQL queries irrespective of naming conventions of primary keys, foreign keys, tables etc :fire: |
|
|
|
|
* Support for composite primary keys :fire: |
|
|
|
|
* Usual suspects : CRUD, List, FindOne, Count, Exists, Distinct |
|
|
|
|
* Pagination |
|
|
|
|
* Sorting |
|
|
|
|
* Column filtering - Fields :fire: |
|
|
|
|
* Row filtering - Where :fire: |
|
|
|
|
* Bulk insert, Bulk delete, Bulk read :fire: |
|
|
|
|
* Relations - automatically detected |
|
|
|
|
* Aggregate functions |
|
|
|
|
* More |
|
|
|
|
* Upload single file |
|
|
|
|
* Upload multiple files |
|
|
|
|
* Download file |
|
|
|
|
* Authentication |
|
|
|
|
* Access Control |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GraphQL API Overview |
|
|
|
|
|
|
|
|
|
### Query |
|
|
|
|
|
|
|
|
|
| **Resolver** | **Arguments** | **Returns** | **Description** | |
|
|
|
|
|---|---|---|---| |
|
|
|
|
| [TableName**List**](#tablenamelist) | where: String, limit: Int, offset: Int, sort: String | [TableName] | List of table rows | |
|
|
|
|
| [TableName**Read**](#tablenameread) | id:String | TableName | Get row by primary key | |
|
|
|
|
| [TableName**Exists**](#tablenameexists) | id: String | Boolean | Check row exists by primary key | |
|
|
|
|
| [TableName**FindOne**](#tablenamefindone) | where: String | TableName | Find row by where conditions | |
|
|
|
|
| [TableName**Count**](#tablenamecount) | where: String | Int | Get rows count | |
|
|
|
|
| [TableName**Distinct**](#tablenamedistinct) | columnName: String, where: String, limit: Int, offset: Int, sort: String | [TableName] | Get distinct rows based on provided column names | |
|
|
|
|
| [TableName**GroupBy**](#tablenamegroupby) | fields: String, having: String, limit: Int, offset: Int, sort: String | [TableNameGroupBy] | Group rows by provided columns | |
|
|
|
|
| [TableName**Aggregate**](#tablenameaggregate) | columnName: String!, having: String, limit: Int, offset: Int, sort: String, func: String! | [TableNameAggregate] | Do aggregation based on provided column name aggregate function | |
|
|
|
|
| [TableName**Distribution**](#tablenamedistribution) | min: Int, max: Int, step: Int, steps: String, columnName: String! | [distribution] | Get distributed list | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Mutations |
|
|
|
|
|
|
|
|
|
| **Resolver** | **Arguments** | **Returns** | **Description** | |
|
|
|
|
|---|---|---|---| |
|
|
|
|
| [TableName**Create**](#tablenamecreate) | data:TableNameInput | TableName | Insert row into table | |
|
|
|
|
| [TableName**Update**](#tablenameupdate) | id:String,data:TableNameInput | TableName | Update table row using primary key | |
|
|
|
|
| [TableName**Delete**](#tablenamedelete) | id:String | TableName | Delete table row using primary id | |
|
|
|
|
| [TableName**CreateBulk**](#tabelenamecreatebulk) | data: [TableNameInput] | [Int] | Bulk row insert | |
|
|
|
|
| [TableName**UpdateBulk**](#tablenamebulk) | data: [TableNameInput] | [Int] | Bulk row update | |
|
|
|
|
| [TableName**DeleteBulk**](#tablenamedeletebulk) | data: [TableNameInput] | [Int] | Bulk row delete | |
|
|
|
|
|
|
|
|
|
## Query Arguments |
|
|
|
|
|
|
|
|
|
| **Param** | **Description** | **Default value** |**Example Value**| |
|
|
|
|
|---|---|---|---| |
|
|
|
|
| where | Logical Expression | | `(colName,eq,colValue)~or(colName2,gt,colValue2)` <br />[Usage: Comparison operators](#comparison-operators) <br />[Usage: Logical operators](#logical-operators) | |
|
|
|
|
| limit | Number of rows to get(SQL limit value) | 10 | 20 | |
|
|
|
|
| offset | Offset for pagination(SQL offset value) | 0 | 20 | |
|
|
|
|
| sort | Sort column name, where use `-` as prefix for descending sort | | column_name | |
|
|
|
|
| fields | Required column names in result | * | column_name_1,column_name_2 | |
|
|
|
|
|
|
|
|
|
#### Comparison operators |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
eq - '=' - (colName,eq,colValue) |
|
|
|
|
not - '!=' - (colName,ne,colValue) |
|
|
|
|
gt - '>' - (colName,gt,colValue) |
|
|
|
|
ge - '>=' - (colName,ge,colValue) |
|
|
|
|
lt - '<' - (colName,lt,colValue) |
|
|
|
|
le - '<=' - (colName,le,colValue) |
|
|
|
|
is - 'is' - (colName,is,true/false/null) |
|
|
|
|
isnot - 'is not' - (colName,isnot,true/false/null) |
|
|
|
|
in - 'in' - (colName,in,val1,val2,val3,val4) |
|
|
|
|
btw - 'between' - (colName,btw,val1,val2) |
|
|
|
|
nbtw - 'not between'- (colName,nbtw,val1,val2) |
|
|
|
|
like - 'like' - (colName,like,%name) |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Example use of comparison operators - complex example |
|
|
|
|
``` |
|
|
|
|
PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,2000))") |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Logical operators |
|
|
|
|
``` |
|
|
|
|
~or - 'or' |
|
|
|
|
~and - 'and' |
|
|
|
|
~not - 'not' |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### TableNameList |
|
|
|
|
#### Request |
|
|
|
|
``` |
|
|
|
|
CountryList { |
|
|
|
|
country_id |
|
|
|
|
country |
|
|
|
|
last_update |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
#### Response |
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
|
"CountryList": [ |
|
|
|
|
{ |
|
|
|
|
"country_id": 1, |
|
|
|
|
"country": "Afghanistan", |
|
|
|
|
"last_update": "1139978640000", |
|
|
|
|
"CityCount": 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"country_id": 2, |
|
|
|
|
"country": "Algeria", |
|
|
|
|
"last_update": "1139978640000", |
|
|
|
|
"CityCount": 3 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"country_id": 3, |
|
|
|
|
"country": "American Samoa", |
|
|
|
|
"last_update": "1139978640000", |
|
|
|
|
"CityCount": 1 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### List + where |
|
|
|
|
|
|
|
|
|
##### Request |
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryList(where:"(country,like,United%)") { |
|
|
|
|
country_id |
|
|
|
|
country |
|
|
|
|
last_update |
|
|
|
|
CityCount |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[Usage : comparison operators](#comparison-operators) |
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
|
"CountryList": [ |
|
|
|
|
{ |
|
|
|
|
"country_id": 101, |
|
|
|
|
"country": "United Arab Emirates", |
|
|
|
|
"last_update": "1139958840000", |
|
|
|
|
"CityCount": 3 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"country_id": 102, |
|
|
|
|
"country": "United Kingdom", |
|
|
|
|
"last_update": "1139958840000", |
|
|
|
|
"CityCount": 8 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"country_id": 103, |
|
|
|
|
"country": "United States", |
|
|
|
|
"last_update": "1139958840000", |
|
|
|
|
"CityCount": 35 |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### List + where + sort + offset |
|
|
|
|
|
|
|
|
|
##### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryList(where:"(country,like,United%)",sort:"-country",offset:1) { |
|
|
|
@ -414,7 +265,9 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -435,14 +288,17 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### List + limit |
|
|
|
|
|
|
|
|
|
##### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryList(limit:6) { |
|
|
|
@ -451,7 +307,9 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -478,15 +336,20 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
|
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameRead |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
CountryRead(id:"1") { |
|
|
|
|
country_id |
|
|
|
@ -495,7 +358,9 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
"data": { |
|
|
|
|
"CountryRead": { |
|
|
|
@ -506,26 +371,38 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameExists |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
CountryExists(id:"1") |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
"data": { |
|
|
|
|
"CountryExists": true |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameFindOne |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
CountryFindOne(where:"(country_id,eq,1)") { |
|
|
|
|
country_id |
|
|
|
@ -535,7 +412,9 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
"data": { |
|
|
|
|
"CountryFindOne": { |
|
|
|
@ -546,26 +425,41 @@ PaymentList(where:"(checkNumber,eq,JM555205)~or((amount,gt,200)~and(amount,lt,20
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
|
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameCount |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
CountryCount |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
"data": { |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
|
"CountryCount": 109 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameDistinct |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryDistinct(columnName:"last_update",limit:3) { |
|
|
|
@ -574,7 +468,9 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -592,11 +488,16 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameGroupBy |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
CountryGroupBy(fields:"last_update",limit:1) { |
|
|
|
@ -608,7 +509,9 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -623,11 +526,16 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
|
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameAggregate |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
PaymentAggregate(columnName:"amount",func:"min,max,avg,count") { |
|
|
|
@ -638,7 +546,9 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -653,10 +563,12 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#query) |
|
|
|
|
[⤴](#query) |
|
|
|
|
|
|
|
|
|
### TableNameDistribution |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
{ |
|
|
|
|
PaymentDistribution (columnName:"amount"){ |
|
|
|
@ -666,7 +578,9 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -688,10 +602,15 @@ CountryCount
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#mutations) |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
[⤴](#mutations) |
|
|
|
|
|
|
|
|
|
### TableNameCreate |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
mutation { |
|
|
|
|
CountryCreate(data: {country: "test"}) { |
|
|
|
@ -703,7 +622,9 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -717,10 +638,15 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#mutations) |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
[⤴](#mutations) |
|
|
|
|
|
|
|
|
|
### TableNameUpdate |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
mutation { |
|
|
|
|
CountryUpdate(data: {country: "test_new"}, id: "10264") { |
|
|
|
@ -732,7 +658,9 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -746,10 +674,15 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#mutations) |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
[⤴](#mutations) |
|
|
|
|
|
|
|
|
|
### TableNameDelete |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
mutation { |
|
|
|
|
CountryDelete(id: "10264") { |
|
|
|
@ -761,7 +694,9 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -774,18 +709,25 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#mutations) |
|
|
|
|
[⤴](#mutations) |
|
|
|
|
|
|
|
|
|
### TableNameCreateBulk |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
mutation { |
|
|
|
|
CountryCreateBulk(data:[{country:"test 2"},{country:"test 3"}]) |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -795,18 +737,25 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#mutations) |
|
|
|
|
[⤴](#mutations) |
|
|
|
|
|
|
|
|
|
### TableNameUpdateBulk |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
mutation { |
|
|
|
|
CountryUpdateBulk(data: [{country: "test 2", country_id: 10265}, {country: "test 3", country_id: 10266}]) |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -817,18 +766,25 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|
|
|
|
|
[:arrow_heading_up:](#mutations) |
|
|
|
|
|
|
|
|
|
[⤴](#mutations) |
|
|
|
|
|
|
|
|
|
### TableNameDeleteBulk |
|
|
|
|
#### Request |
|
|
|
|
<code-group> |
|
|
|
|
<code-block label="Request" active> |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
mutation { |
|
|
|
|
CountryDeleteBulk(data: [{country_id: 10265}, {country_id: 10266}]) |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Response |
|
|
|
|
</code-block> |
|
|
|
|
<code-block label="Response"> |
|
|
|
|
|
|
|
|
|
```json |
|
|
|
|
{ |
|
|
|
|
"data": { |
|
|
|
@ -839,3 +795,6 @@ mutation {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
</code-block> |
|
|
|
|
</code-group> |
|
|
|
|
|