Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-18-2023 06:45 PM
Hi all,
I am building a react app using Neo4jGraphQL and AuraDB. I have a simple query where I want to return all the nodes of a given type.
In cypher the query is
match (n: Champion) return n
Using Apollo GraphQL, the query becomes
type Query{
allChampions:[Champion] @cypher(statement:"""
match (n: Champion) return n
""")
}
const GET_ALL_CHAMPIONS = gql`
query explore {
allChampions {
id
name
imageSrc
}
}
`;
The cypher query is very quick using the neo4j auradb browser:
01-18-2023 06:46 PM
01-18-2023 09:09 PM
Looks to be related to this?
Any advice here?
All the sessions of the conference are now available online