Skip to content

Commit

Permalink
create new query
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcvbnmmohd committed Jul 29, 2024
1 parent 1c74271 commit 04eb22b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions amplify/backend/api/RukuAPI/schema.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
type Query {
echo(message: String!): String! @function(name: "RukuAPIQueryHandler-${env}")
}

# ------------------------------------------------------------------------------------- MODELS

type Announcement
Expand Down
2 changes: 1 addition & 1 deletion amplify/backend/function/RukuAPIQueryHandler/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const handler = async (event: Event): Promise<any> => {
console.info(`EVENT: ${JSON.stringify(event)}`);
console.info(`EVENT: `, JSON.stringify(event, null, 2));

return {
statusCode: 200,
Expand Down

0 comments on commit 04eb22b

Please sign in to comment.