-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupergraph.graphql
112 lines (90 loc) · 2.6 KB
/
supergraph.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
schema
@core(feature: "https://specs.apollo.dev/core/v0.2"),
@core(feature: "https://specs.apollo.dev/join/v0.1", for: EXECUTION)
{
query: Query
mutation: Mutation
}
directive @core(as: String, feature: String!, for: core__Purpose) repeatable on SCHEMA
directive @join__field(graph: join__Graph, provides: join__FieldSet, requires: join__FieldSet) on FIELD_DEFINITION
directive @join__graph(name: String!, url: String!) on ENUM_VALUE
directive @join__owner(graph: join__Graph!) on INTERFACE | OBJECT
directive @join__type(graph: join__Graph!, key: join__FieldSet) repeatable on INTERFACE | OBJECT
input AdminAuth {
Email: String!
Password: String!
}
input AdminCreateEmployeeInput {
Department: String!
Email: String!
FullName: String!
Password: String!
}
input CreateAdmin {
Email: String!
Password: String!
}
input LogHistory {
FullName: String
}
type Mutation {
AdminLogin(input: AdminAuth): admin @join__field(graph: AUTHENTICATIONSERVICES)
CreateAdmin(input: CreateAdmin): admin @join__field(graph: AUTHENTICATIONSERVICES)
CreateEmployee(input: AdminCreateEmployeeInput): employee @join__field(graph: AUTHENTICATIONSERVICES)
FindEmployeeHistoryLogs(input: LogHistory): employeeLogs @join__field(graph: TIMESERVICES)
InputEmployeeTimeIn(input: TimeIn): employeeLogs @join__field(graph: TIMESERVICES)
InputEmployeeTimeOut(input: TimeOut): employeeLogs @join__field(graph: TIMESERVICES)
UserLogin(input: UserAuth): employee @join__field(graph: AUTHENTICATIONSERVICES)
}
type Query {
GetAllEmployeeHistoryLogs: [employeeLogs] @join__field(graph: TIMESERVICES)
List: [employee] @join__field(graph: AUTHENTICATIONSERVICES)
SetTimer: [employeeLogs] @join__field(graph: TIMESERVICES)
}
input TimeIn {
FullName: String
}
input TimeOut {
FullName: String
}
input UserAuth {
Email: String!
Password: String!
}
type admin {
Email: String!
Password: String!
}
enum core__Purpose {
"""
`EXECUTION` features provide metadata necessary to for operation execution.
"""
EXECUTION
"""
`SECURITY` features provide metadata necessary to securely resolve fields.
"""
SECURITY
}
type employee {
CreatedAt: String
Department: String
Email: String
FullName: String
Password: String
id: ID
}
type employeeLogs {
FullName: String
HistoryLog: String
Indicators: String
Report: String
TimeIn: String
TimeOut: String
id: ID
user: employee
}
scalar join__FieldSet
enum join__Graph {
AUTHENTICATIONSERVICES @join__graph(name: "AuthenticationServices" url: "http://127.0.0.1:5050/")
TIMESERVICES @join__graph(name: "TimeServices" url: "http://127.0.0.1:8000/")
}