-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype_defs.js
47 lines (43 loc) · 1.06 KB
/
type_defs.js
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
const gql = require('graphql-tag');
const typeDefs = gql`
type CheckPoint {
created_at: String!
slug: String!
checkpoint_time: String!
location: String
city: String
state: String
country_name: String
message: String
tag: String!
subtag: String
subtag_message: String
zip: String
}
type Tracking {
tracking_number: String!
slug: String!
active: Boolean!
created_at: String!
updated_at: String!
last_updated_at: String!
destination_country: String
origin_country: String
shipment_package_count: Int
shipment_pickup_date: String
shipment_delivery_date: String
shipment_type: String
shipment_weight: Float
shipment_weight_unit: String
checkpoints: [CheckPoint!]
tag: String
subtag: String
subtag_message: String
}
type Query {
tracking(tracking_number: String!): Tracking
}
`;
module.exports = {
typeDefs,
};