cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Configure Vue CLI Apollographql Server

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?

2 REPLIES 2

MuddyBootsCode
Graph Steward

Do you mean the Apollo client for your UI code?

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