arangodb-community / arangodb-graphql-spring-boot-starter Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I followed the filtering example and I am not sure if the results are what is to be expected.
I have two types
type country @vertex(collection: "countries"){
_key: String!
name: String!
states(region:String): [state] @edge (collection: "stateToCountry", direction: "inbound")
}
type state @vertex(collection: "states"){
_key: String!
name: String!
region: String!
countries: [country] @edge (collection: "stateToCountry", direction: "outbound")
}
the queries are
findState(name: String): [state]
findCountry(name: String): [country]
when I run the following:
query{
findCountry{
name
states(region:"South"){
name
region
}
}
}
it returns all the countries.
based on the docs, it seemed that it would only return countries where the state had a region of "South"
am I reading the docs wrong or applying the filter incorrectly?
First, great work and appreciate the time and effort that went into this library.
I am using spring data arango to persist/modify the database (since mutations aren't available yet in the graphql library) and plan to use arango-graphql for the main UI to deliver the majority of the reads.
When testing a query via altair, I received this message:
Exception while fetching data (/getClient) : com.arangodb.velocypack.exception.VPackParserException: com.arangodb.velocypack.exception.VPackParserException: java.lang.ClassNotFoundException: com.model.Person
It seems the "_class" property, which gets generated via the ArangoConfiguration, is added for inheritance support. So, as a workaround/fix, I override the method like so:
from
default ArangoTypeMapper arangoTypeMapper() throws Exception {
return new DefaultArangoTypeMapper(this.typeKey(), this.arangoMappingContext());
}
to (changing this.typeKey() to null)
@Override
public ArangoTypeMapper arangoTypeMapper() throws Exception {
return new DefaultArangoTypeMapper(null, this.arangoMappingContext());
}
then "_class" is not persisted and the graph query works as expected.
i am using this library for my application. is this library support mutation in graphql?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.