key types is required while logging to mongo for postgres querying