You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/[platform]/build-a-backend/functions/custom-functions/index.mdx
+5-5
Original file line number
Diff line number
Diff line change
@@ -110,15 +110,15 @@ You're now ready to deploy your python function. Next is the same process as the
110
110
To get started, Create a new directory and a resource file, `amplify/functions/say-hello/resource.ts`. Then, define the function with `defineFunction`:
Now when you run `npx ampx sandbox` or deploy your app on Amplify, it will include your Function.
206
207
207
-
To invoke your Function, we recommend adding your [Function as a handler for a custom query with your Amplify Data resource](/[platform]/build-a-backend/data/custom-business-logic/). This will enable you to strongly type Function arguments and the return statement, and use this to author your Function's business logic. To get started, open your `amplify/data/resource.ts` file and specify a new query in your schema:
208
+
To invoke your function, we recommend adding your [function as a handler for a custom query with your Amplify Data resource](/[platform]/build-a-backend/data/custom-business-logic/). To get started, open your `amplify/data/resource.ts` file and specify a new query in your schema:
208
209
209
210
```ts title="amplify/data/resource.ts"
210
-
Now when you run `npx ampx sandbox` or deploy your app on Amplify, it will include your function.
0 commit comments