Last active
April 18, 2020 05:33
-
-
Save vladbatushkov/b535b3ad5f2669e3e1901e3a2eb4c156 to your computer and use it in GitHub Desktop.
FlightsSearchNodes GraphQL query schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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