Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 6eb59b0

Browse files
committed
feat(common): add applicant queries to common
1 parent d2af4cd commit 6eb59b0

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import gql from 'graphql-tag';
2+
3+
export default gql`
4+
query ApplicantList {
5+
applicants {
6+
id
7+
isAlumni
8+
firstname
9+
lastname
10+
suggestions {
11+
id
12+
}
13+
}
14+
}
15+
`;

common/src/graphql/queries/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { default as ME } from './me';
2+
export { default as APPLICANT_LIST } from './applicantList';

common/src/graphql/subscriptions/applicantsChanged.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ export default gql`
44
subscription ApplicantsSub {
55
applicantsChanged {
66
id
7-
suggestions
8-
projects
7+
suggestions {
8+
id
9+
}
10+
projects {
11+
id
12+
}
913
firstname
1014
lastname
1115
isAlumni

common/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from './types/Project';
66
export * from './types/Profile';
77
export * from './types/Skill';
88
export * as queries from './graphql/queries';
9+
export * as subscriptions from './graphql/subscriptions';

0 commit comments

Comments
 (0)