cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

0 REPLIES 0