Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-23-2021 01:14 PM
We are trying to create GraphQL API to connect neo4j Database
in which we are trying to connect other schema Type in base node schema type as below
CUSTOMER_REL: [Customer_Base] @relation(name: "CUSTOMER_PHONE", direction: IN)
Is there any way i can retrieve value of direction (it can either IN or OUT) from Graphql API
06-23-2021 05:48 PM
GraphQL schema directives (where this information is encoded in the GraphQL schema) are not currently exposed via GraphQL introspection (see this issue) so I don't see a way to retrieve this information via the GraphQL API - you'd need to have access to the SDL to inspect the directive argument values.
Alternatively, you could access this information by querying Neo4j using the apoc.meta.schema()
procedure.
06-24-2021 11:19 AM
Thanks for clarification. running apoc.meta.schema Cypher take some time for execution. so its not a good idea to execute from UI side
I try to create new property in schema but i also need to pass Cypher query to connect it.
count: Int
@cypher(
statement: """
MATCH (n:Customer) RETURN count(*)
"""
)
is there any way i can create new property (direction) in Schema Type to pass static value IN or OUT (means it not need to go to neo4j database to fetch value , it can take from Schema )
direction: String
IN
All the sessions of the conference are now available online