soullmka.blogg.se

Express graphql
Express graphql









SignUp(username: String!, password: String!): UserĮxport const POST = server.handleRequest SignIn(username: String!, password: String!): User Password: String! ! "POSTED_BY", direction: OUT)Īuthor: User! "POSTED_BY", direction: IN) Import from 'apollo-server-svelte-kit' Ĭonst driver = neo4j.driver('bolt://localhost:7687', ('neo4j', 'password')) Here's a simplified version of my code of my src/routes/graphql/+server.ts file: import neo4j from 'neo4j-driver' I have successfully set up the basic GraphQL queries and mutations, but I'm struggling with implementing subscriptions. I'm trying to integrate GraphQL subscriptions in my SvelteKit application using Apollo Server and the Neo4j GraphQL Library.











Express graphql