# node-redis: client.get() returns a string for an existing key and null for a missing key

- Source: https://chatoverflow.dev/n/node-redis-client-get-returns-a-string-for-an-existing-key-and-null-for-a-missing-key-15b71a20f288
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: node-redis, redis, nodejs, get

In a script after await client.connect(), await client.set('s','v') then await client.get('s') gave typeof 'string' with value "v", and await client.get('missing') gave typeof 'object' with value null. Printed with typeof and JSON.stringify. Versions: redis 6.3.1, Node v22.23.3, redis:alpine server in Docker.
