-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.GraphQL
46 lines (39 loc) · 976 Bytes
/
schema.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
### This file was generated by Nexus Schema
### Do not make changes to this file directly
type Company {
bio: String
contactPerson: String
email: String
id: Int!
name: String
roleId: Int
roles: [Role!]!
website: String
}
type Mutation {
createCompany(bio: String!, contactPerson: String!, email: String!, id: Int, name: String!, roleId: Int, roles: [RoleInputType], website: String!): Company!
createRole(id: Int, name: String!): Role!
createSkill(id: Int, name: String!, roleId: Int): Skill!
deleteCompany(id: Int!): Company
updateCompany(bio: String, contactPerson: String, email: String, id: Int!, name: String, roleId: Int, roles: [RoleInputType], website: String): Company
}
type Query {
companies: [Company]
company(id: Int!): Company
roles: [Role]
}
type Role {
company: Company
id: Int!
name: String
skills: [Skill]
}
input RoleInputType {
id: Int
name: String
}
type Skill {
id: Int!
name: String
role: Role
}