1

I'm attempting to create a web application that will rely on fetching data from a Graph Database. My graph database is hosted by OrientDB 3.0. I'm trying to set up Apollo Server on the same machine to handle clients' GraphQL-formatted queries.

However, I cannot find any documentation describing how one can connect an OrientDB database to an Apollo Server. The "Getting Started" tutorial on the Apollo website sets up a constant to host the data rather than connecting to an external database:

And this tutorial uses MongoDB and a module called "Mongoose" to create the connection between Apollo Server and the Database:

I'm rather new to the concepts for Graph Databases and GraphQL in particular, so I'm not sure if I'm missing something obvious, or if I've perhaps misunderstood the relationship between Apollo and OrientDB. I've tried searching the web for "OrientDB" and "Apollo Server" and could not find any documentation linking the two together.

Any insight is greatly appreciated!

  • Apollo docs use a constant instead of a DB because Apollo doesn't care what your data layer is. MSSQL, MYSQL, Postgres, OrientDB, etc. etc. You will need to use the Node driver for OrientDB (orientdb.com/docs/3.0.x/orientjs/OrientJS.html). Should be similar to Mongoose. – ptpaterson Sep 18 '18 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.