# Change label of virtual node works in browser but not in bloom scene action

**URL:** <https://community.neo4j.com/t/change-label-of-virtual-node-works-in-browser-but-not-in-bloom-scene-action/61257>\
**Category:** Neo4j Visualization Library (NVL)\
**Tags:** apoc, bloom\
**Created:** [March 5, 2023, 8:15am UTC](https://community.neo4j.com/t/change-label-of-virtual-node-works-in-browser-but-not-in-bloom-scene-action/61257 "2023-03-05T08:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cboulanger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cboulanger/32/20123_2.png) [@cboulanger](https://community.neo4j.com/u/cboulanger)\
**Post date:** [March 5, 2023, 8:15am UTC](https://community.neo4j.com/t/change-label-of-virtual-node-works-in-browser-but-not-in-bloom-scene-action/61257/1 "2023-03-05T08:15:38Z")

</div>

Hi,

I have a graph containin `Work` nodes connected by `CITES` relationships. Each `Work` has a `decade` property which contains the decade in which it was published.

I want to group the citation patterns over the decades and use the following cypher query. In it, I change the label of the virtual `Work` nodes to `Works` (note the additional "s"). The reason is that in Bloom I want to be able to style the virtual nodes and virtual relations in the group graph differently from the original nodes and relationships.

```auto
CALL apoc.nodes.group(['Work','Work'],['decade'])
YIELD nodes, relationships
UNWIND nodes as n
CALL apoc.create.setLabels(n, ['Works']) YIELD node
UNWIND relationships as rel
RETURN node, rel order by node.decade

```

In Neo4J Browser, everything works as intended:

 ![grafik](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/a/5/a555d034e69e33a2b8ada445c642846ab471df26.png)

If I put this in a Scene Action in Bloom, I get the message

**Sorry, we couldn't find any results for this action., Scene Action could not be completed due to an error.**

I know that scene actions are supposed to work on selected nodes only. However, this is not the cause of the error, because if I remove the ` apoc.create.setLabels` call, the Scene Action works without problems - showing virtual `Work` nodes (here styled in the desired way):

```auto
CALL apoc.nodes.group(['Work','Work'],['decade'])
YIELD nodes, relationships
UNWIND nodes as node
UNWIND relationships as rel
RETURN node, rel order by node.decade

```

 ![grafik](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/c/a/cae72b8fb2004d515f8ef5ff529994123d5c9d6e.png)

This, however, doesn't solve my problem because then I have to manually change the styling according to whether I display the original non-virtual `Work` nodes or the grouped virtual `Work` nodes. Otherwise, my `Work` graph looks like this:

 ![grafik](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/5/4/54d386e92555ef88cb0d5f071fc2e1a710d11445.png)

instead of this:

 ![grafik](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/7/d/7df876ddb74961fdec4adc0b9a5595a7cdad4570.png)

On the other hand, working in Neo4j Browser doesn't help me either because there I cannot style nodes and relationships dynamically based on property values.

Once displaying the changed label in Bloom works, I want to move to changing the relationship type as well, but that would be the next question.

Thank you for any pointers...

---

<div class="post-metadata">

**Author:** ![cboulanger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cboulanger/32/20123_2.png) [@cboulanger](https://community.neo4j.com/u/cboulanger)\
**Post date:** [March 5, 2023, 7:20pm UTC](https://community.neo4j.com/t/change-label-of-virtual-node-works-in-browser-but-not-in-bloom-scene-action/61257/2 "2023-03-05T19:20:41Z")

</div>

Update: If I use a search phrase instead of a scene action (which makes more sense for this anyways, I just realized), the real error message is displayed: "AN ERROR OCCURRED WHILE EXECUTING SEARCH: Writing in read access mode not allowed. Attempted write to internal graph 0 (neo4j)" So I am not allowed to mutate the elements of a virtual graph?
