Giter Site home page Giter Site logo

Comments (13)

Tangmere avatar Tangmere commented on May 13, 2024 3

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.

jexp avatar jexp commented on May 13, 2024

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.

MMJM avatar MMJM commented on May 13, 2024

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.

Tangmere avatar Tangmere commented on May 13, 2024

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.

jexp avatar jexp commented on May 13, 2024

from neo4j-graphql.

Tangmere avatar Tangmere commented on May 13, 2024

I'm using 3.1.3

Advice to Mac users is to get the TAR ball

from neo4j-graphql.

rivanrashid avatar rivanrashid commented on May 13, 2024

@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.

jexp avatar jexp commented on May 13, 2024

@rivanrashid you might need to put it into the plugins directory within your graphdb directory.

from neo4j-graphql.

BernhardWenzel avatar BernhardWenzel commented on May 13, 2024

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.

FickleLife avatar FickleLife commented on May 13, 2024

Thanks for this - what's the best folders to do this for a docker install?

from neo4j-graphql.

jexp avatar jexp commented on May 13, 2024

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.

FickleLife avatar FickleLife commented on May 13, 2024

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.

jexp avatar jexp commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.