Hi,
I can't get this to work for some reason:
type BlogPost
id: ID! @id
title: String
slug: @callback(operations: [CREATE, UPDATE], name: "slug")
const slugCallback = async (root: any) => {
// console.log("Slug callback", root);
return "something...";
};
const neoSchema = new Neo4jGraphQL({
typeDefs,
driver,
config: { callbacks: { slug: slugCallback } },
});
I receive the following error:
{
"name": "TypeError",
"message": "Failed to fetch",
"stack": "TypeError: Failed to fetch\n at
...etc
}
Seems like there's something wrong with the syntax. If I remove the @callback directive, then everything works as expected.