-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataSourcesFieldsTypesResolversMap.js
More file actions
44 lines (38 loc) · 1.02 KB
/
dataSourcesFieldsTypesResolversMap.js
File metadata and controls
44 lines (38 loc) · 1.02 KB
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
// This file contains a JavaScript object that maps data sources to types to fields.
// Where the fields are also the prefix of the request and response resolvers file
// The names here must match the name of the data sources, types and fields in the
// GraphQL schema as well as the names of the request and response mapping files
// in this directory. If the names don't match the appSync.js script will fail
// to attach the resolver.
const { envPrefix } = global;
module.exports = {
[`${envPrefix}foobar_establishments_table`]: {
Query: [
"getEstablishmentById",
"getEstablishmentsUserManages",
],
Mutation: [
"putEstablishment",
],
},
[`${envPrefix}foobar_events_table`]: {
Query: [
"getEvents",
],
Mutation: [
"putEvent"
],
},
[`${envPrefix}getGooglePhotoReference`]: {
Establishment: [
'googlePhotoReference'
]
},
ESDomain: {
Query: [
"searchEstablishments",
"searchEvents",
"getEstablishmentsInBounds"
]
}
}