@zeroin.earth/appwrite-graphql 0.14.9 → 0.14.10
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2100,7 +2100,7 @@ function useSuspenseFunction({
|
|
|
2100
2100
|
functionId,
|
|
2101
2101
|
body = {},
|
|
2102
2102
|
async = false,
|
|
2103
|
-
path = "",
|
|
2103
|
+
path = "/",
|
|
2104
2104
|
method = "POST"
|
|
2105
2105
|
}) {
|
|
2106
2106
|
const { graphql: graphql2 } = useAppwrite();
|
|
@@ -2108,7 +2108,7 @@ function useSuspenseFunction({
|
|
|
2108
2108
|
const [currentFunction, setCurrentFunction] = useState(null);
|
|
2109
2109
|
const executeFunction = useSuspenseQuery(
|
|
2110
2110
|
{
|
|
2111
|
-
queryKey: ["appwrite", "functions", functionId],
|
|
2111
|
+
queryKey: ["appwrite", "functions", functionId, path],
|
|
2112
2112
|
queryFn: async () => {
|
|
2113
2113
|
setCurrentFunction(functionId);
|
|
2114
2114
|
const { data } = await graphql2.mutation({
|