Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Last active April 18, 2020 05:33
Show Gist options
  • Save vladbatushkov/b535b3ad5f2669e3e1901e3a2eb4c156 to your computer and use it in GitHub Desktop.
Save vladbatushkov/b535b3ad5f2669e3e1901e3a2eb4c156 to your computer and use it in GitHub Desktop.
FlightsSearchNodes GraphQL query schema
type FlightDetails {
flight_number: String!
duration: String!
price: FlightsInt!
departs_local: FlightsDateTime!
arrival_local: FlightsDateTime!
}
type FlightInfo {
flight: FlightDetails @neo4j_ignore
company: Airline @neo4j_ignore
}
type RouteInfo {
code: String!
name: String!
country: String!
city: String!
}
type FlightsSearchResult {
flights: [FlightInfo] @neo4j_ignore
route: [RouteInfo] @neo4j_ignore
stops: FlightsInt!
}
type Query {
FlightsSearchNodes(from: String, to: String, date: String):
[FlightsSearchResult] @cypher(statement: "CALL custom.getFlightsNodes($from, $to, $date, 1, 6) YIELD result RETURN result")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment