Skip to content

Bolt integer coming back wrong? #164

@Alfiec7113

Description

@Alfiec7113
image image

Seems to be something wrong with negative numbers?
Is there something I need to configure for that.

let mut tile_result = driver
    .execute(
        query(
        "   MATCH (p:Player {username: 'c'})-[:EXPLORED]->(t:Tile)
            OPTIONAL MATCH (p)-[:UNIT]->(u:Unit)-[:FOV]->(t)
            OPTIONAL MATCH (u)-[:Position]->(pt:Tile)
            
            RETURN 
                COLLECT(DISTINCT apoc.map.merge({node_id: elementId(u), tile_node_id: elementId(pt)}, properties(u))) AS units, 
                COLLECT(DISTINCT apoc.map.merge({id: elementId(t), fov:u is not null}, properties(t))) AS tiles       
        ",
        )
        .param("username", username),
    )
    .await?;

let row = tile_result
    .next()
    .await?
    .expect("No row returned for tile query");
println!("{:#?}", row);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions