Frank
AppSyncApi
construct. You can create an AWS AppSync GraphQL API like this:
new AppSyncApi(this, "GraphqlApi", {
graphqlApi: {
schema: "graphql/schema.graphql",
},
resolvers: {
"Query listNotes": "src/list.main",
"Query getNoteById": "src/get.main",
"Mutation createNote": "src/create.main",
"Mutation updateNote": "src/update.main",
"Mutation deleteNote": "src/delete.main",
},
});
More examples here https://docs.serverless-stack.com/constructs/AppSyncApi#examples
Big thanks to @Sione @p0wl @Mike McCall and @deini for helping me putting this together!
Let me know what other constructs you’d like to see!Matthew Mollica
03/27/2021, 2:10 PMFrank