Reports
FETCH QUERY
fetchReport(
filters: [FetchFilter]
expression: String
orderBy: [FetchOrderBy]
customViewId: String
pageNumber: Int
recordsPerPage: Int
): FetchReportResponse
Type details
type FetchReportResponse {
code: Int!
message: String!
status: Boolean!
messageKey: String!
data: [Report]
}
type Report {
id: String
recordStatus: String
createdBy: String
createdAt: String
updatedBy: String
updatedAt: String
name: String
fileKey: String
}
Argument
filters: [FetchFilter]
expression: String
orderBy: [FetchOrderBy]
customViewId: String
pageNumber: Int
recordsPerPage: Int
type FetchFilter {
operator: String!
name: String!
value: [String]
logicalOperator: String
}
scalar String
type FetchOrderBy {
name: String!
order: [FetchOrder]
}
scalar String
scalar Int
scalar Int
Simple Request: To Search Fetch Tasks record
{
fetchReport
{
code
messageKey
data{
id
name
}
}
}
Sample Response
{
"data": {
"fetchReport": {
"code": 200,
"messageKey": "report-search-success",
"data": []
}
}
}
## GET QUERY ##
```graphql
getTask(
id: String!
): GetTaskResponse
Type details
type GetTaskResponse {
code: Int!
message: String!
status: Boolean!
messageKey: String!
data: Task
}
### **Argument**
```graphql
id: String!
Sample query for Get tasks
{
getTask(id:"333c2f45-ff61-4aae-8ba7-e323fe910072")
{code message status data{id name ownerId}}
}
Sample Response
{
"data": {
"getTask": {
"code": 200,
"message": "task fetch successfully",
"status": true,
"data": {
"id": "333c2f45-ff61-4aae-8ba7-e323fe910072",
"name": "Task for Jonathan Williams (Sample)",
"ownerId": "c680e0fd-7952-49af-9212-f677355240b3"
}
}
}
}
UPDATE QUERY
updateTask(
id: String!
input: UpdateTaskInput
): SaveTaskResponse
Type details
type SaveTaskResponse {
code: Int!
message: String!
status: Boolean!
messageKey: String!
data: Task
errors: String
}
Argument
id: String!
input: UpdateTaskInput
Sample Request: To Search update Task record
mutation {
updateTask(id:"333c2f45-ff61-4aae-8ba7-e323fe910072" input:{name:"morph"})
{code message status data{id name }}
}
Sample Response
{
"data": {
"updateTask": {
"code": 200,
"message": "task updation successfully",
"status": true,
"data": {
"id": "333c2f45-ff61-4aae-8ba7-e323fe910072",
"name": "morph"
}
}
}
}
CREATE QUERY
createTask(
input: CreateTaskInput
): SaveTaskResponse
Type details
type SaveTaskResponse {
code: Int!
message: String!
status: Boolean!
messageKey: String!
data: Task
errors: String
}
Argument
input: CreateTaskInput
Sample Request: To create Task record
mutation {
createTask(input:{statusId: "f4dc0ad6-5ad9-4ef8-8f2a-875360e9d2ee" name:"test01" ownerId:"7258c169-27eb-4b62-b5d9-9af889e3e5d6"}){code message status data{id name }}
}
Sample Response
{
"data": {
"createTask": {
"code": 200,
"message": "task create successfully",
"status": true,
"data": {
"id": "1a8ff2e4-4edc-4c32-a127-23a5edfc3be3",
"name": "test01"
}
}
}
}
DELETE QUERY
deleteTask(
id: String
): SaveTaskResponse
Type details
type SaveTaskResponse {
code: Int!
message: String!
status: Boolean!
messageKey: String!
data: Task
errors: String
}
Argument
id: String
Sample Request: To delete Task record
mutation {
deleteTask(id:"1a8ff2e4-4edc-4c32-a127-23a5edfc3be3")
{code message status data{id name }}
}
Sample Response
{
"data": {
"deleteTask": {
"code": 200,
"message": "task delete successfully",
"status": true,
"data": {
"id": "1a8ff2e4-4edc-4c32-a127-23a5edfc3be3",
"name": "test01"
}
}
}
}