Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-20-2020 06:43 PM
I'm trying to get a Vue CLI app with Apollographql Server to connect to Neo4j.
I've used neo4j-graphql-js and the app can sucessfully connect to the Grandstack Server I have setup.
grand-stack\api\src\index.js
const driver = neo4j.driver(
process.env.NEO4J_URI || "bolt://localhost:7687",
neo4j.auth.basic(
process.env.NEO4J_USER || "neo4j",
process.env.NEO4J_PASSWORD || "test"
),
);
How to I provide the above connection info in Vue CLI Apollo Server?
10-21-2020 02:51 AM
Do you mean the Apollo client for your UI code?
10-21-2020 04:07 AM
Apollo Server.
One of the vue cli installation options is to install Apollo Server. It creates apollo-server in the project root with the following files.
apollo-server
context.js
data-sources.js
directives.js
mocks.js
resolvers.js
schema.graphql
server.js
type-defs.js
utils
All the sessions of the conference are now available online