Can anyone help us with an Inline Function?
# prisma-whats-new
m
Can anyone help us with an Inline Function?
n
Sure, why don't you describe your situation in a new question in the forum: https://graph.cool/forum/c/questions
m
When I return a promise from a function I get TypeError: Converting circular structure to JSON
We are trying to do this: require(‘isomorphic-fetch’) module.exports = function (event) { console.log(event.data) return fetch(‘https://requestb.in/187vlpq1', { method: ‘post’, headers: { ‘Content-Type’: ‘application/json’, ‘Access-Control-Allow-Origin’: ‘*’ }, body: JSON.stringify(event.data) }).then((response) => { console.log(response); }) }
If I remove the return from the fetch it works, but I never get the HTTP response logged