I have a Neo4j DB with relationships that have properties such as [:FRIENDS {since: "11/2015"}]. I need to represent the "since" property in the GraphQl Schema. RELAY has something call "edges" an apparently this is how they implement this feature but I am not using RELAY.....I didn't see anything in Apollo (maybe I missed it). Can someone show me how to do this?
How do I represent Neo4j relationship properties in my Graphql Schema?
1k Views Asked by MichaelE At
1
There are 1 best solutions below
Related Questions in NEO4J
- Neo4j CALL subquery with UNWIND returns 0 records
- LookupError: No plugin named 'GremlinPlugin'
- Mount Azure file share on Azure container app
- Unable to install Neo4J on Mac M3
- What is the reason I'm seeing a Lookup index which is null when I run, graph.run(SHOW INDEXES;)?
- jQAssistant scan missing value for retrofit2.http.GET
- How to create model instances from html form and save to AuraDb?
- neo4j, how to query chain using two different nodes
- Connecting Azure container app Spring boot backend to Azure container app Neo4j database
- Relationship refuses to generate in Neo4j
- Is there a way to bulk import csv data into cosmos db gremlin API Azure?
- spring data neo4j could not query a list of relationship?
- How to connect to Neo4J's AuraDB (free tier) from Django?
- Segregating data from different collections in Neo4j database community edition
- Neo4j Source Connectors Failing to build the Schema where the source query returns null for some of the fields
Related Questions in GRAPHQL
- Expo Go crashing with on error message using Amplify Graphql to get an item
- Error: Response not successful: Received status code 405
- uninitialized constant GraphqlDevise::SchemaPlugin from graphql_devise
- Endpoint graphiql not working in Spring Boot application
- Relationships query in Tableau Metadata API by using GraphQL
- Dealing with Null Values in GraphQL API Response
- GraphQL filter query in react app with https://countries.trevorblades.com/ api
- Issue querying related data in Apollo Server 4 with Prisma Schema
- Error creating bean with name 'routerFunctionMapping' defined in class path resource
- Using Apollo client wrapper in Next.js 14 App router
- 400 Bad Request From React Axios Graphql SageX3
- graphql-java extension type redefine error from version 15
- How do I use and access the operation name in a graphQL query using spring-boot-starter-graphql and GraphQlTester?
- Upload file in GraphQL and apollo-server
- GraphQL and springboot resolver mapping problem
Related Questions in APOLLO-SERVER
- Keep two values in sync when data changes
- In Apollo GraphQL, how do I setup a resolver to not loop values?
- Apollo: Required Shape of Server Response?
- GraphQL redirect when resolver throws error
- How to design the following resolver for GraphQL server?
- function with parameters inside an object
- Setting up auth0 with apollo server
- Apollo GraphQL: How to Set Up Secure Websockets?
- Apollo GraphQL: Setting Port for HTTPBatchedNetworkInterface?
- How do I represent Neo4j relationship properties in my Graphql Schema?
- Apollo resetStore is not working in Angular client
- How to run nodejs with apollo graphql server
- GraphQL nested query arguments?
- How to debug my really slow resolver connected to Firebase Realtime Database?
- Graphql playground stuck at loading when accessing my server in heroku
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Ok...so in order to get what I wanted which was to present both the node and the relationship (edge) to graphql I did what I would call a work-around by returning object.assign(node,relationship) to graphql....the downside is that I have to define a type nodeRel {} to receive the combined objects but it works. Also, the node and relationship objects can't have similar named properties. I can now answer the question how long John and Mary are friends or what groups John belongs to and how long he has been a member....Schema snippet:
Resolver:
I hope this help someone else....