Importing data to neo4j from a GraphQL data source


(Rrva) #1

Hello. I have some data exposed by a GraphQL server which I would like to
query in more ad-hoc fashion using cypher. I have a query which exposes
pretty much the entire graph of data I am interested in. What is
the easiest way to migrate the schema and import the data in neo4j?


(Michael Porter) #2

I would think the easiest way would be to grab the neo4j-driver for whatever language you're using and then make your requests to your GraphQL endpoint passing the results into your Neo4j instance. So writing in whatever language you prefer, hit the end point, store the results and then write them to the database. There's a lot of good examples in the various docs.


(Rrva) #3

I am looking for something which helps me automatically and continuously migrate the schema into neo4j, and possibly also the data

I know how to do it "by hand" in code, with explicit mapping of fields to nodes but I am looking for a way

where the neo4j schema can reflect the graphql source schema always and possibly then getting help with the data mapping as well.

Basically adding persistence and better query capabilites to any existing GraphQL source.


(Michael Porter) #4

Sounds like an opportunity for a great open source project.