Comments (13)
Nightmare over.
In case anyone else is struggling with getting this running on a Mac here is what I had to do. I'm new to neo4j so I hope i'm explaining this correctly.
I had to create the plugins folder in this location and place the jar file in there.
/Users/???/Documents/Neo4j/default.graphdb/plugins
This seems to get the plugin loading so you can run the function CALL graphql.schema()
To get this part of the setup working so you can reach the /graphql/ endpoint
dbms.unmanaged_extension_classes=org.neo4j.graphql=/graphql
I had to edit the config file located here /Users/???/Documents/Neo4j/.neo4j.conf
Starting neo4j at this point threw an error. I finally worked out you need to add the plugin inside the application contents. So on the mac 2 finger click on the Neo4j Community Edition 3.1.3.app application in /applications/
and select Show Package Contents
. This was new to me and i didn't know you could do that.
Navigate to this location and copy in the jar file.
/Applications/Neo4j Community Edition 3.1.3.app/Contents/Resources/app/plugins
Now start Neo4j and hopefully it should all be good and you can access http://localhost:7474/graphql/
from neo4j-graphql.
Can you share your config entry? There should also be a log entry at startup declaring that it installs the endpoint
And you copied it to the plugins directory?
from neo4j-graphql.
I am using neo4j 3.1.3 Community edition
Config entry is this and is in /neo4j/default.graphdb/config/neo4j.conf
dbms.unmanaged_extension_classes=org.neo4j.graphql=/graphql
In the plugin directory, I have
neo4j-graphql-0.1-SNAPSHOT.jar
The CALL graphql.schema()
function works so I'm assuming the plugin is running. I just can't seem to get to it using Postman or graphiql without getting a 404 Not Found.
from neo4j-graphql.
I have added the following to the .neo4j.conf file instead and it looks like it is trying to start the extension but now I'm getting an error shown below. Anyone have ideas on this?
dbms.unmanaged_extension_classes=org.neo4j.graphql=/graphql
Starting Neo4j failed: org.neo4j.server.web.NeoServletContainer-4970e5df@90ba62e4==org.neo4j.server.web.NeoServletContainer,-1,false
from neo4j-graphql.
from neo4j-graphql.
I'm using 3.1.3
Advice to Mac users is to get the TAR ball
from neo4j-graphql.
@Tangmere , how did you access the following location in windows?
/Applications/Neo4j Community Edition 3.1.3.app/Contents/Resources/app/plugins
I did not find any location containing "/Applications/Neo4j Community Edition 3.1.3.app" in windows.
However in windows I have the following path containing the neo4j files where I put the jar file.
"C:\Program Files\Neo4j CE 3.1.6\plugins"
Still could not make it running in the graphiql app.
from neo4j-graphql.
@rivanrashid you might need to put it into the plugins directory within your graphdb directory.
from neo4j-graphql.
Regarding the @Tangmere Mac solution, it works, but it is required to restart the mac app (it's not sufficient to just click on start button)
from neo4j-graphql.
Thanks for this - what's the best folders to do this for a docker install?
from neo4j-graphql.
You can map the Docker plugins directory and set the config option
see in the readme:
https://github.com/neo4j-graphql/neo4j-graphql#manual-installation
from neo4j-graphql.
Thanks @jexp, I added the environment variable -e NEO4J_dbms_unmanagedextensionclasses=org.neo4j.graphql=/graphql
but in the logs I am getting: 2019-01-02 19:36:34.604+0000 WARN Unknown config option: dbms.unmanagedextensionclasses
, any clues?
EDIT: adding camel case 'NEO4J_dbms_unmanagedExtensionClasses' worked for me, might be a good idea to update the docs?
from neo4j-graphql.
sorry there was an rendering error in the readme
it is -e NEO4J_dbms_unmanaged__extension__classes=org.neo4j.graphql=/graphql
from neo4j-graphql.
Related Issues (20)
- Read-only user can update schema
- Disabling auto-generated query types and mutations
- Empty response from /graphql/ HOT 1
- Feature request: custom filters on auto-generated update mutations HOT 4
- feature: auto-generated update and merge on relationships with properties HOT 3
- feature request: return a path in a query/mutation with @cypher HOT 2
- Support Map as a parameter HOT 1
- Auto-Generated Mutations Always Return "Nothing Happened HOT 1
- Ensure versions.json lists most recent Neo4j version (if supported)
- Nodes with node label `String` are ignored HOT 1
- How to set the schema? HOT 1
- missing constraints on neo4j property for graphql non-nullable field HOT 1
- Schema does not allow optional arguments
- Timebased versioning with @relation-objects
- Invalid input '_filter'
- Cannot find module 'neo4j-driver/lib/temporal-types' HOT 1
- Executing the CALL graphql.schema('text') returning error
- Nested array type generate normal array in CreateInput
- Retrieve properties of Relationship
- mandate to use graphql implementation js server (For e.g. apollo node js ) or works with java graphql
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j-graphql.