@zeroin.earth/appwrite-graphql 0.14.3 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2021,7 +2021,14 @@ function useFunction() {
2021
2021
  const [currentExecution, setCurrentExecution] = useState(null);
2022
2022
  const [currentFunction, setCurrentFunction] = useState(null);
2023
2023
  const executeFunction = useMutation({
2024
- mutationFn: async ({ functionId, body = {}, async, path, method, headers }) => {
2024
+ mutationFn: async ({
2025
+ functionId,
2026
+ body = {},
2027
+ async = false,
2028
+ path = "/",
2029
+ method = "POST",
2030
+ headers = {}
2031
+ }) => {
2025
2032
  setCurrentFunction(functionId);
2026
2033
  const { data } = await graphql2.mutation({
2027
2034
  query: createExecution,