Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue trying to get an example working with connected nodes #48

Open
azizbodal opened this issue Mar 11, 2022 · 1 comment
Open

Issue trying to get an example working with connected nodes #48

azizbodal opened this issue Mar 11, 2022 · 1 comment

Comments

@azizbodal
Copy link

Hi. I am trying to get a basic example. I am trying to run your example with dbpedia with Country and City. When I query a city using the GraphiQL, I get the city Id but if I try to get the city and country, I get the following error:
Exception while fetching data (/City_GET[0]/country/_id) : class java.util.ArrayList cannot be cast to class org.apache.jena.rdf.model.RDFNode (java.util.ArrayList is in module java.base of loader 'bootstrap'; org.apache.jena.rdf.model.RDFNode is in unnamed module of loader 'app')

I am using the pre-built jar located at: https://www.hypergraphql.org/resources/hypergraphql-3.0.1-exe.jar
My query is:
{ City_GET(limit: 5) { _id _type country { _id _type } } }
Config: https://github.com/hypergraphql/hypergraphql/blob/master/src/test/resources/test_configurations/config1.json
Schema: https://github.com/hypergraphql/hypergraphql/blob/master/src/test/resources/test_configurations/schema1.graphql

Let me know what I am missing.

@AnasShahab
Copy link

I am having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants