Olyno
04/07/2022, 11:24 AMOlyno
04/07/2022, 11:25 AMmewash
04/07/2022, 11:30 AMalph42
04/07/2022, 3:24 PMfernandolguevara
04/07/2022, 3:30 PMalph42
04/07/2022, 3:34 PMalph42
04/07/2022, 3:43 PMricky
04/07/2022, 11:03 PMgaryaustin
04/08/2022, 12:35 AMlogikal
04/08/2022, 4:22 AMPOST
/v1/projects/:projectRef/functions/:functionName
* PATCH
/v1/projects/:projectRef/functions/:functionName
Also looking for how a request gets routed to a deployed function. all I could find was the functions-relay
repo, but there isn't much there to go on.Ry
04/08/2022, 4:54 AMInvaderZed
04/08/2022, 5:50 AMmellson
04/08/2022, 9:38 AMmewash
04/08/2022, 9:50 AMmewash
04/08/2022, 9:52 AMmellson
04/08/2022, 9:53 AMmewash
04/08/2022, 9:54 AMmellson
04/08/2022, 9:55 AMmewash
04/08/2022, 9:56 AMmellson
04/08/2022, 10:00 AMmewash
04/08/2022, 10:04 AMmellson
04/08/2022, 10:05 AMproductdevbook
04/08/2022, 12:28 PMdigitalsimboja
04/08/2022, 1:22 PMquery {
postCollection {
edges {
node {
id
description
}
}
}
}
// Query for the data (React)
const [result, reexecuteQuery] = useQuery({
query: PostsQuery,
})
// Read the result
const { data, fetching, error } = result
if (!data) {
// If there is a server error, you might want to
// throw an error instead of returning so that the cache is not updated
// until the next successful request.
throw new Error(Failed to fetch posts, received status ${error}
)
}
// If the request was successful, return the posts
// and revalidate every 10 seconds.
return {
props: {
posts,
},
revalidate: 10,
}
}digitalsimboja
04/08/2022, 1:23 PMdigitalsimboja
04/08/2022, 1:23 PMOlyno
04/08/2022, 1:30 PMdigitalsimboja
04/08/2022, 1:33 PMnota
04/08/2022, 1:58 PM