GDS is within docker compose but RETURN gds.version(); returns syntax error

I've been running neo4j locally within docker.

I've followed the following guide to install gds and apoc within the container. Plugins - Operations Manual

docker-compose is as follows

  database:
    image:  neo4j:latest
    container_name: database
    ports:
      - 7474:7474
      - 7473:7473
      - 7687:7687
    volumes:
      - ./db:/data
      - logs:/logs
    environment:
      - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
      - NEO4J_AUTH=${NEO4J_USERNAME}/${NEO4J_PASSWORD}
      - NEO4J_PLUGINS='["apoc", "graph-data-science"]'

When I use the neo4j browser and run the following command

RETURN gds.version();

I get the following

Unknown function 'gds.version' (line 1, column 8 (offset: 7))
"RETURN gds.version();"
        ^

The same happens when using the neo4j desktop client and connecting to the docker containers DB

What's the best next steps at debugging this?

in the container logs, does it say anything about not being able to load the graph-data-science plugin? This can happen sometimes when neo4j has a new release but the plugin team are slow to do their corresponding release.

Hi Jenny,

I've checked the following logs and there is nothing regarding being able to load graph data science

I checked user-logs.xml , debug.log, neo4j.log and docker std out there's nothing to indicate that it hasn't been loaded. What's a preferred image tag I can roll back to ensure the plugins are installed?

I've resolved the issue,

Within the documentation, it has the array in speech marks. But this is not meant to be the case so when I changed it as follows

    environment:
      - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
      - NEO4J_AUTH=${NEO4J_USERNAME}/${NEO4J_PASSWORD}
      - NEO4J_PLUGINS=["apoc", "graph-data-science"]

GDS loads.

It's worth noting that I am using docker-compose and not docker run. Perhaps it may be worth reflecting the nuance in the documentation.