Gerald
11/21/2021, 11:37 AMFrank
Gerald
11/22/2021, 1:12 PMtype Menu {
name: String!
}
input MenuWhereInput {
name: String
}
type Category {
_id: String!
name: String!
menu(_where_: MenuWhereInput): [Menu!]
}
type Query {
categories: [Category!]
}
this.api = new AppSyncApi(this, "AppSyncApi", {
graphqlApi: {
schema: [
'src/api/graphql/schema/category.graphql'
],
},
dataSources: {
category: "src/api/graphql/category/main.handler"
},
resolvers: {
"Query categories": "category",
"Query <http://categories.menu|categories.menu>": "category"
}
});
Frank