How to use multiple labels with GraphQL?

Hello,

I'm getting started with GraphQL. Long time Neo4j user.

My question is how does one use multiple labels?

How would I do the following in the Schema?

CREATE (n:Person:Admin)
SET n = {name: 'John Smith'}
RETURN n

QUERY

MATCH (n:Person:Admin) 
WITH n, LABELS(n) AS labels 
RETURN n {.*, labels: labels}

A few months ago when I started reading about the Neo4j / GraphQL integration. I through I saw a discussion about multiple labels and a workaround. However, my searching skills are failing me.

Thanks for any help!
Chad

3 Likes