GQLAlchemy 1.1 Python Object Graph Mapper

You must be wondering what GQLAlchemy is? In short, GQLAlchemy is a fully open source Python library developed to support writing and running queries on Memgraph and other Cypher & Bolt compatible graph databases. As an Object Graph Mapper (OGM), the main goal of GQLAlchemy is to simplify the creation of graph applications for Python developers.

Wondering what’s under the hood? Then head over to the GitHub repository don’t hesitate to give a star! ☆ If you want to try GQLAlchemy right now, head over to the Quick start and learn how to use it.

The rest of the article will explain in more detail what an OGM and GQLAlchemy is.

GQLAlchemy 1.1 - A Python OGM (object graph mapper) for graph DB’s!

GQLAlchemy 1.1

What is an OGM, and why use it?

Object Graph Mapper or OGM provides a developer-friendly workflow that allows object-oriented notation when communicating with a graph database.

Instead of writing Cypher queries, you can write object-oriented code that OGM will automatically translate into Cypher queries.

The why and what behind GQLAlchemy 1.1

GQLAlchemy is a fully open-source Python library developed to assist in writing and running queries on Memgraph and other Cypher & Bolt-compatible graph databases.

As a Python developer, you will be able to:

  • automate object conversion between graph database objects and Python objects,
  • write correct Cypher queries with checks inside IDEs,
  • easily handle setting up Memgraph features like streaming, triggers, and constraints.

Release lead software engineer Mislav wrote more about GQLAlchemy in the launch announcement 🚀

About GQLAlchemy in less than 5 minutes

Press to watch GQLAlchemy release overview

Alongside Mislav, CTO Marko also covered the release. He recorded a short, less than 5-minutes long video about what’s new in GQLAlchemy 1.1. Watch it on YouTube.

Watch the GQLAlchemy 1.1 DEMO

OK, so everything so far caught your attention and you are wondering how an OGM works and how it can simplify your workflow? Then check out the GQLAlchemy 1.1 demo that we published on our YouTube channel.

Watch the GQLAlchemy 1.1 demo on YT

The demonstration was moderated by the lead GQLAlchemy developer Mislav and Katarina and Ivan from the DevRel team.

Here are the highlights of the demo:👇

  • [00:00] - GQLAlchemy - what & why?
  • [00:45] - How is the query builder implemented?
  • [02:08] - Creating graph schema
  • [03:59] - Example of Object Graph Mapper usage
  • [06:39] - Automatic schema validation
  • [08:45] - Using on-disk storage
  • [10:42] - Streaming and trigger support
  • [13:42] - Live coding - building a robust application using GQLAlchemy

GQLAlchemy tutorials

Our demo moderators, Katarina, Ivan and Mislav, have also written three tutorials on using GQLAlchemy. Here are their links and short descriptions:

Building robust applications using GQLAlchemy

Building robust applications using GQLAlchemy image

In this tutorial, you will learn how to create a small part of the Twitch analytics app using GQLAlchemy and how it greatly simplifies the creation of graph-based apps.

Streaming and trigger support with GQLAlchemy

Streaming and trigger support with GQLAlchemy image

Learn how to create and manage Memgraph data streams and database triggers using only Python and GQLAlchemy, without learning Cypher query language.

Using on disk storage with an in-memory Graph Database

Streaming and trigger support with GQLAlchemy image

Since Memgraph is a graph database that stores data only in memory, the GQLAlchemy library provides an on-disk storage solution for large properties not used in graph algorithms. Read how it works in the article.

Try out GQLAlchemy on GitHub

Try out GQLAlchemy on GitHub

To try out GQLAlchemy, follow the GitHub installation instructions. Drop us a pull request if you feel inspired and want to help us enhance GQLAlchemy further.

If you encounter any problems, the documentation is always at your service, or reach out to us on our community forum.

Join us on Discord

Our growing community of Python graph developers is here to help unlock a whole new world of graph-based applications. Engage in meaningful and valuable conversations with other Memgraph developers and the Memgraph team. We are all here with the same goal - building world-class graph applications.

Join us on Discord

Give Memgraph a try

If you’d like to take Memgraph for a spin, you can download it for free.

Visit our Download Hub

Table of Contents
Sign up for our Newsletter