const{Neo4jGraphQL}=require("@neo4j/graphql");const{ApolloServer,gql}=require("apollo-server");constneo4j=require("neo4j-driver");consttypeDefs=gql`
type Word {
word: String!,
fastrpEmbedding: [Float]!,
community: Int!
}
`;constdriver=neo4j.driver("bolt://localhost:7687",neo4j.auth.basic("neo4j","password"));constneoSchema=newNeo4jGraphQL({typeDefs,driver});constserver=newApolloServer({schema:neoSchema.schema,});server.listen().then(({url})=>{console.log(`🚀 Server ready at ${url}`);});