Skip to content

Commit 05e593b

Browse files
authored
Create GetIncident_Details.js
This code snippet helps with the basic details required to fetch the incident.
1 parent 502f3c7 commit 05e593b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
schema {
2+
query: Query
3+
}
4+
5+
type Query {
6+
EntersysID(sys_id:ID!):incident
7+
}
8+
9+
type incident{
10+
sys_id:DisplayableString
11+
number:DisplayableString
12+
short_description:DisplayableString
13+
caller_id: User @source(value:"caller_id.value")
14+
cmdb_ci: CI @source(value:"cmdb_ci.value")
15+
}
16+
17+
type User{
18+
sys_id:DisplayableString
19+
user_name:DisplayableString
20+
first_name:DisplayableString
21+
last_name:DisplayableString
22+
email:DisplayableString
23+
}
24+
25+
type CI{
26+
sys_id:DisplayableString
27+
install_status:DisplayableString
28+
name:DisplayableString
29+
}
30+
31+
type DisplayableString{
32+
value:String
33+
display_value:String
34+
}

0 commit comments

Comments
 (0)